This problem is made for glob.
Note the check that the name represents a regular file.my $pattern = '*.zip'; for my $file ( glob $pattern ) { next unless -f $file; print 'Doing this and that for ', $file, $/; do_this($file); do_that($file); }
After Compline,
Zaxo
In reply to Re: Best way to match items in an array
by Zaxo
in thread Best way to match items in an array
by ibanix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |