in reply to Re: 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!!)

__DATA__ is 0x40 in length for sub test_2. Each iteration of the for loop should return 0x10 in length.
  • Comment on Re^2: sub will not return data correctly (the way i want it to!!)

Replies are listed 'Best First'.
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

    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.