in reply to Re^2: Aliasing and return, how does return work?
in thread Aliasing and return, how does return work?
Make sure you aren't accidentally shifting the argument you're planning on setting before you set it.sub ret :lvalue { $_[0] } sub foo { &ret++; print "ARGS: <@_>\n"; } my ($x, $y) = (10, 20); foo($x, $y); __END__ ARGS: <11 20>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Aliasing and return, how does return work?
by bsb (Priest) on Jun 30, 2004 at 06:38 UTC |