XP is just a number | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
When you call your second subroutine, it's going to start through the first loop of your for(), do the four reads, then return. It's never going to do the other 3 loops. If you want to do the loop four times and then return a list of all the results, you can do that. Create an array before your for() loop starts, then replace your return with a push to that array:
Then after the for() loop is finished, return @results. Aaron B. In reply to Re: sub will not return data correctly (the way i want it to!!)
by aaron_baugher
|
|