in reply to Re: selcting all files in a given directory except......
in thread selcting all files in a given directory except......
the solution of moritz it's more robustreaddir ($DIR); # ignore . readdir ($DIR); # ignore ..
@files = grep {/^(?!\.{1,2}\z)/} readdir($DIR);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: selcting all files in a given directory except......
by grinder (Bishop) on Dec 06, 2007 at 17:10 UTC | |
|
Re^3: selcting all files in a given directory except......
by ikegami (Patriarch) on Dec 06, 2007 at 18:48 UTC |