Just another Perl shrine | |
PerlMonks |
Re: Help with creating and passing of an array...by IraTarball (Monk) |
on Nov 14, 2001 at 04:44 UTC ( [id://125184]=note: print w/replies, xml ) | Need Help?? |
I think I found your problem The array @PER_Data; is outside of the while loop. This means that it is not going to be destroyed until the program ends. So the line pushes the same reference over and over again. Then the next time through the modification overwrites the data you thought you saved. you can fix this by either moving the declaration of @PER_DATA inside the while loop or by changing the above line to
Hope this helps,
"So... What do all these little arrows mean?"
In Section
Seekers of Perl Wisdom
|
|