... cleaner ...
Cleaner when used to do something reasonable as in your examples, but I hope hanspr never actually saw some of the examples given in the OP. As pointed out by pryrt,
return 1 unless ($flag // 0);
is exactly equivalent to
return 1 unless $flag;
(except more confusing), and ... if $HAS_FOCUS // ''; likewise.
Give a man a fish: <%-{-{-{-<
In reply to Re^2: Meaning of //
by AnomalousMonk
in thread Meaning of //
by hanspr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |