You've already been given some good ideas about using File::Find::Rule so I though I'd point out something else you could try to find file extensions. You can also use File::Basename with your existing code:
-- vek --my ($name, $dir, $ext) = fileparse($filepath, '\..*');
In reply to Re: Searching file extensions
by vek
in thread Searching file extensions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |