Might need a bit of tweaking, but I think it's usually better to use modules than to call external programs.use File::Find; my @found; find({ wanted => sub { if (/\.bat$/i) # Catches 'bat' and 'BAT' { push(@found, $File::Find::name); } } }, $dir); print "$_\n" foreach (@found);
In reply to Re: short dir listing
by tadman
in thread short dir listing
by P0w3rK!d
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |