-d $_ and ! /^\.\.?$/
No, you meant \z instead of $. $ matches _before_ \n (if there is any). Newline is a valid character in filenames with many filesystems.
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
In reply to Re: Re: •Re: Re: Create a list of directories without . and ..
by Juerd
in thread Create a list of directories without . and ..
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |