foreach $file (@files){ next unless $file =~ /\.dat$/; # other stuff here... }
In reply to Re: filtering file names to be added to an array...maybe.
by fs
in thread filtering file names to be added to an array...maybe.
by udigthis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |