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
In reply to Re^2: Recursive sub efficiency
by skywalker
in thread Recursive sub efficiency
by skywalker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |