in reply to Re: Re: Create a list of directories without . and ..
in thread Create a list of directories without . and ..
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Create a list of directories without . and ..
by Anonymous Monk on Jun 05, 2002 at 04:15 UTC |