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

it said "no such file or directory"

Replies are listed 'Best First'.
Re^3: problems opening logfile
by FunkyMonk (Bishop) on Aug 10, 2007 at 09:26 UTC
    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

      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...