in reply to passing elements of an array as a ref to another array
I think you want to change it to just:
push @rows, @temp[$one..$two];
As this avoids the unwanted extra level of references that you are introducing.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
|
|---|