in reply to Re: Create a list of directories without . and ..
in thread Create a list of directories without . and ..
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: Re: Create a list of directories without . and ..
by dws (Chancellor) on Jun 04, 2002 at 22:34 UTC | |
by Juerd (Abbot) on Jun 04, 2002 at 22:36 UTC | |
|
Re: •Re: Re: Create a list of directories without . and ..
by Juerd (Abbot) on Jun 04, 2002 at 22:27 UTC | |
by merlyn (Sage) on Jun 04, 2002 at 22:30 UTC | |
by Juerd (Abbot) on Jun 04, 2002 at 22:34 UTC | |
by Abigail-II (Bishop) on Jun 05, 2002 at 10:57 UTC | |
by Juerd (Abbot) on Jun 05, 2002 at 11:19 UTC |