in reply to Re: Recursive sub efficiency
in thread Recursive sub efficiency
However the inline grep and directory check does not return any anything. Ive updated the directory handle to a scaler as per Ikegami's advice.
my @files = grep(/\w/,readdir($fh)); #returns folder & files my @dirs = grep {/\w/ and -d} readdir($fh); #returns blank
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Recursive sub efficiency
by ikegami (Patriarch) on Jun 10, 2010 at 20:27 UTC | |
|
Re^3: Recursive sub efficiency
by toolic (Bishop) on Jun 10, 2010 at 20:23 UTC |