in reply to In search of elegant code - looking deeply into a hash
my @possible_last_names = map {$_->{lastname}} grep {$_->{firstname} eq "Alice"} values %uid; # Returns ("Foo")
"Think of how stupid the average person is, and realize half of them are stupider than that." - George Carlin
|
|---|