Keep It Simple, Stupid | |
PerlMonks |
Re^2: Shortcut operator for $a->{'b'}=$b if $b;by rokadave (Sexton) |
on Sep 20, 2005 at 16:27 UTC ( [id://493505]=note: print w/replies, xml ) | Need Help?? |
Yes. If there's no shortcut operator, then your suggestion is the cleanest it'll get.
I was hoping there existed an "assign-if-true" operator.
In Section
Seekers of Perl Wisdom
|
|