in reply to Re^2: Problem with while loop inside a foreach loop
in thread Problem with while loop inside a foreach loop
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
|
|---|