if (-d $_) && ($_ != '.') && ($_ != '..') {
This is invalid syntax (needs an extra set of parens) and the != operator is not the one you want for string equality tests. I think you meant:
-d uses $_ if no argument is given.if (-d and $_ ne '.' and $_ ne '..') {
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
In reply to 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |