Actually it will contain the array element ...
Actually, it will contain an alias to the array element. See choroba's reply.
>perl -wMstrict -le "my @ra = (1, 2, 3, 4); print qq{@ra}; ;; for my $n (@ra) { $n *= $n; } print qq{@ra}; " 1 2 3 4 1 4 9 16
In reply to Re^3: Problem with while loop inside a foreach loop
by AnomalousMonk
in thread Problem with while loop inside a foreach loop
by andylevel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |