http://www.perlmonks.org?node_id=493509


in reply to Shortcut operator for $a->{'b'}=$b if $b;

What is the correlation between 'b' and $b? Is one used to derive the other? If so, then map may help.
$a = { map { $val = some_derivation($_) ? ( $_ => $val ) : () } qw(a b c) };
Ivan Heffner
Sr. Software Engineer, DAS Lead
WhitePages.com, Inc.