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!!)
You can also call the function 4 times instead:
Notice that test_2() is not even called. A for loop around the first sub accomplishes the same goal.my @test_1_data = test_1($test); my @test_2_data; push @test_2_data, test_1( $test ) for 1 .. 4;
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: sub will not return data (after data has been returned)
by james28909 (Deacon) on Jun 18, 2015 at 00:59 UTC |