in reply to Re: Modifying an array of hashes
in thread Modifying an array of hashes

And even more Perlish is the use of map, low precedence and, hash slices, and list assignment (untested):
map {$$_{name} eq 'Bob' and @{$_}{qw{name age}} = qw{Robert 42}}} @peo +ple;

Replies are listed 'Best First'.
Re^3: Modifying an array of hashes
by ikegami (Patriarch) on Apr 06, 2011 at 22:30 UTC
    yuck!
Re^3: Modifying an array of hashes
by believer (Sexton) on Apr 11, 2011 at 13:43 UTC
    Yuck indeed. This will not work because
    $$_{name} eq 'Bob' and @{$_}{qw{name age}
    will at best evaluate to '' for non-Bobs.