in reply to
Error opening a file
You have to give the complete program or subroutine to get proper response. This error message doesn't look like coming from the statement what you have given.
Comment on
Re: Error opening a file
In Section
Seekers of Perl Wisdom