in reply to Re: Shortcut operator for $a->{'b'}=$b if $b;
in thread Shortcut operator for $a->{'b'}=$b if $b;
It doesn’t “abort” the assignment – the logical OR is evaluated first, then possibly the last, and if that is evaluated, it prevents the assignment from evaluating at all. And thus it works.
Makeshifts last the longest.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Shortcut operator for $a->{'b'}=$b if $b;
by CountZero (Bishop) on Sep 20, 2005 at 21:15 UTC | |
by Roy Johnson (Monsignor) on Sep 20, 2005 at 22:21 UTC |
In Section
Seekers of Perl Wisdom