Re: edit array in place
- From: Ben Morrow <ben@xxxxxxxxxxxx>
- Date: Fri, 22 May 2009 17:43:04 +0100
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
.
- Follow-Ups:
- Re: edit array in place
- From: Uri Guttman
- Re: edit array in place
- References:
- edit array in place
- From: Brandon Metcalf
- Re: edit array in place
- From: Uri Guttman
- Re: edit array in place
- From: Brandon Metcalf
- Re: edit array in place
- From: Uri Guttman
- edit array in place
- Prev by Date: Re: double variable interpolation question
- Next by Date: Re: edit array in place
- Previous by thread: Re: edit array in place
- Next by thread: Re: edit array in place
- Index(es):
Relevant Pages
|