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
In reply to Re: passing elements of an array as a ref to another array
by davorg
in thread passing elements of an array as a ref to another array
by elusion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |