in reply to Best way to match items in an array
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Best way to match items in an array
by ibanix (Hermit) on Dec 07, 2002 at 21:17 UTC |