Or in this case,
next if -d || $_ eq "." || $_ eq "..";
or just
next if -d;
In reply to Re^4: Is this the most elegant way to code directory lookup? (!unless)
by ikegami
in thread Is this the most elegant way to code directory lookup?
by texasperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |