in reply to Idiom: Localize with 'for'
in thread re-using a hash reference (was: Mar)
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" }; } }
|
---|