Jul 31, 2007, 10:57 AM
Post #1 of 4
I have a subroutine that takes a list I made and adds them to an array. Some are entered as scalars and others Hashs get built and the reference to the Hash is placed in the array(so i guess they are all scalars but thats besides the point). After I make the array I try to return a reference to the array and I get nothing when I try and print the scalar I assigned it to. For example...
subroutine not returning
Nothing is printed at all. I have been playing with this all day and it is driving me nuts. Let me know what other information is needed.
Okay I fixed it somehow. I changed the var ($arrayRef) to something like $arrayRef2 and it started working...
(This post was edited by rcunn87 on Jul 31, 2007, 11:17 AM)