Try Path::Iterator::Rule.
use strict; use warnings; use Path::Iterator::Rule; my $destination = 'C:/Users/Documents'; my $rule = Path::Iterator::Rule->new->file->name('*.txt'); print "$_\n" for $rule->all( $destination ); __END__
Hope this helps!
In reply to Re: system(find) unable to find a file even if the file exists
by 1nickt
in thread system(find) unable to find a file even if the file exists
by SitAllDay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |