in reply to Re: Modify array elements inside for loops
in thread Modify array elements inside for loops
is sufficient. Cool, I'll add that to my trick bag. Much easier than that crazy nested @{[@a]} I've seen so often (and think I actually invented from first principles at one point).foreach (map $_, @a) { $_++; # then whatever }
-- Randal L. Schwartz, Perl hacker
|
|---|