Just as an afterthought, an even more succinct way is
... my @f; push @f, [$_+2, $_+1] for 0 .. 5; ...
which produces identical output.
— Ken
In reply to Re^2: How Perl can push array into array and then how retrieve
by kcott
in thread How Perl can push array into array and then how retrieve
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |