laziness, impatience, and hubris | |
PerlMonks |
Re: Shortcut operator for $a->{'b'}=$b if $b;by ikegami (Patriarch) |
on Sep 20, 2005 at 16:24 UTC ( [id://493502]=note: print w/replies, xml ) | Need Help?? |
I assume you mean $b is a long expression, so you'd rather avoid having it twice. If so, you could topicalize $b:
or (update)
or you could add everything then remove undefined values:
In Section
Seekers of Perl Wisdom
|
|