Re: edit array in place




Quoth "Uri Guttman" <uri@xxxxxxxxxxxxxxx>:

in map/grep/for (in fact anytime $_ is implied for looping), it is
aliased to its value so you can modify $_ and it modifies the original
value.

It's worth noting at this point (since it confused me when I first found
out) that 5.10's 'given' *doesn't* take an alias, it makes a copy.

Ben

.