No such thing as a small change | |
PerlMonks |
Re: While Loopby gothic_mallard (Pilgrim) |
on Oct 21, 2004 at 14:01 UTC ( [id://401162]=note: print w/replies, xml ) | Need Help?? |
I think what you're wanting is to put the values you're getting into an array that can be seen thoughout the scope of the while and after it:
Now you'd have the array @myfile_numbers available after the loop has completed containing the values you read in the order you read them. All code is untested unless otherwise stated.
In Section
Seekers of Perl Wisdom
|
|