Perl: the Markov chain saw | |
PerlMonks |
Re^2: Shortcut operator for $a->{'b'}=$b if $b;by Aristotle (Chancellor) |
on Sep 20, 2005 at 20:35 UTC ( [id://493596]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|