You are asking for a file that "does not match this pattern or that does not match this other pattern." The only reason it works for files with a ".html" extension is that both patterns match. Try changing your or to an and if you don't want files with either extension.
Of course, you can make it easier on yourself by saying exactly what you mean...
unless ( $file_names =~ /\.html?/ ) { ... }
-sauoq "My two cents aren't worth a dime.";
In reply to Re: a lil help on file extension
by sauoq
in thread a lil help on file extension
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |