in reply to Re: Re: Re: Producing 2 lists from a grep call
in thread Producing 2 lists from a grep call
I think we can agree that the FOR LOOP/IF STATEMENT is probably a nicer solution ? :)map { ($_ ne '.') && ($_ ne '..') && push @{ -d "$base/$_" ? \@dirs : \@files }, $_ } (readdir DIR);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Producing 2 lists from a grep call
by Aristotle (Chancellor) on Jun 17, 2002 at 12:28 UTC |