Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: sub will not return data correctly (the way i want it to!!)by mr_mischief (Monsignor) |
on Jun 18, 2015 at 00:29 UTC ( [id://1130912]=note: print w/replies, xml ) | Need Help?? |
return returns from the subroutine. It doesn't push data through a channel. If you want to return a collection of data from multiple loop iterations, you'll have to collect it first.
In Section
Seekers of Perl Wisdom
|
|