in reply to Re: Directory Listing
in thread Directory Listing
That not only exludes dot and dot-dot, but anything beginning with dot and dot-dot. Maybe it was intended to exclude ".random.pm", perhaps?my @files = grep !/^\.\.?/ && /.*pm$/, readdir DIRH;
But yes. On a code review, I'd mark that line as "either do what you mean, or write what you mean as a comment".
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Directory Listing
by turnstep (Parson) on Jan 09, 2001 at 21:20 UTC | |
by chipmunk (Parson) on Jan 10, 2001 at 00:53 UTC | |
by turnstep (Parson) on Jan 10, 2001 at 01:28 UTC | |
by tye (Sage) on Jan 10, 2001 at 01:31 UTC |