in reply to Re: Producing 2 lists from a grep call
in thread Producing 2 lists from a grep call
Update: Excellent point by particle++. Code updated accordingly.for (readdir DIR) { next if $_ eq "." or $_ eq ".."; next unless -d "$base/$_" or -f _; push @{ -d _ ? \@dirs : \@files }, $_; }
Makeshifts last the longest.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Producing 2 lists from a grep call
by BrowserUk (Patriarch) on Jun 16, 2002 at 23:23 UTC | |
by tstock (Curate) on Jun 16, 2002 at 23:40 UTC | |
by Aristotle (Chancellor) on Jun 17, 2002 at 12:28 UTC | |
Re^3: Producing 2 lists from a grep call
by particle (Vicar) on Jun 17, 2002 at 12:26 UTC | |
by Aristotle (Chancellor) on Jun 17, 2002 at 12:35 UTC |