Would you also change
unless (not $var) { ... }
into
if (not not $var) { ... }
The major transformation I did was simply eliminating unless's implicit not. The whole point of if being simpler is that it doesn't have unless's implicit not. Eliminating the not is what makes it simpler, not making the not explicit. (Although tye will point out there is value in making the not explicit over using unless.)
In reply to Re^5: Is this the most elegant way to code directory lookup?
by ikegami
in thread Is this the most elegant way to code directory lookup?
by texasperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |