in reply to Re: Shortcut operator for $a->{'b'}=$b if $b;
in thread Shortcut operator for $a->{'b'}=$b if $b;
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Shortcut operator for $a->{'b'}=$b if $b;
by ikegami (Patriarch) on Sep 20, 2005 at 16:32 UTC | |
by leriksen (Curate) on Sep 21, 2005 at 03:24 UTC | |
by ikegami (Patriarch) on Sep 21, 2005 at 05:28 UTC |
In Section
Seekers of Perl Wisdom