in reply to Re^2: Changing array by changing $_?
in thread Changing array by changing $_?

Are you aware that:

use strict; use warnings; my @array = 1 .. 10; doingStuffWith ($_) for @array; print "@array"; sub doingStuffWith { $_[0] +=10; }

Prints:

11 12 13 14 15 16 17 18 19 20

It's aliases all the way down.


Perl reduces RSI - it saves typing