Maybe it's not relevant, but I can't help noticing that you test $_ to check whether it ends with '.htm' or '.html', so I assume $_ contains the name of the file you want to open. The open statement uses the variable $name though.
Although it may not be the root of the problem, I'm not sure that's what you want.
Just my 2 cents, -gjb-
In reply to Re: File searching
by gjb
in thread File searching
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |