in reply to Re^2: problems opening logfile
in thread problems opening logfile

You are passing the name of the file to open on the command line, aren't you?

Something like:

perl -w script.pl c:\path\to\the\file.txt

Replies are listed 'Best First'.
Re^4: problems opening logfile
by m0ve (Scribe) on Aug 10, 2007 at 09:30 UTC
    something like
    perl -w script.pl \path\to\the\file.txt
    relative path.....
      try printing $file before your script dies, see what path perl thinks its opening...

      Chances are your problem is just that your idea of what that file's path is, and perl's, aren't exactly the same...