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.
In reply to Re^2: Producing 2 lists from a grep call
by Aristotle
in thread Producing 2 lists from a grep call
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |