It's a lot easier than making $$foo reference that thing and then constantly dereferencing it.for my $foo ($_[0]->{bar}->{baz}) { if ($foo->{gronk}) { $foo = { glarb => "oorgle" }; } }
In reply to Re: Idiom: Localize with 'for'
by tadman
in thread re-using a hash reference (was: Mar)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |