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)
In reply to Re^3: sub will not return data (after data has been returned)
by jeffa
in thread sub will not return data correctly (the way i want it to!!)
by james28909
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |