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

something like
perl -w script.pl \path\to\the\file.txt
relative path.....

Replies are listed 'Best First'.
Re^5: problems opening logfile
by technojosh (Priest) on Aug 10, 2007 at 15:13 UTC
    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...