Directory handles are just fine, but I prefer the brevity provided by glob (though the Camel notes that readdir is faster, my typical scripts are such that "the less noise, the better").
use File::Glob qw(:globally); print join "\n", map {-d $_ ? $_ : ()} glob ('c:/foo/{*,.*}');
,welchavw
In reply to Re: Problem pulling directories out of an array.
by welchavw
in thread Problem pulling directories out of an array.
by bkiahg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |