Personally I find pop a little more readable.
use Data::Dumper; my $A = [[1,2,3],[4,5,6]]; @$A = map { $_, [pop @$_] } @$A; print Dumper($A);
In reply to Re^2: array confusion
by tobyink
in thread array confusion
by zerocred
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |