You did not show the value of $filename. If $filename is empty, you're likely to get this error.
Maybe now is a good time to start with the Basic debugging checklist. That way, you can do many checks yourself without needing to wait for monks to reply.
In reply to Re: Problem in mirror method
by Corion
in thread Problem in mirror method
by perlmad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |