Watch it. That falsely excludes ..foo and .bar. Oops! Maybe you want:-d $_ and ! /^\.\.?/
Sometimes a regex is overkill.-d $_ and $_ ne "." and $_ ne ".."
-- Randal L. Schwartz, Perl hacker
In reply to •Re: Re: Create a list of directories without . and ..
by merlyn
in thread Create a list of directories without . and ..
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |