in reply to Re^2: sub will not return data correctly (the way i want it to!!)
in thread sub will not return data correctly (the way i want it to!!)
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.
|
|---|