in reply to problems opening logfile

Try adding $! to the die at the end of the open. It'll tell you what the error was.

See perlvar for a description of $!.

Replies are listed 'Best First'.
Re^2: problems opening logfile
by m0ve (Scribe) on Aug 10, 2007 at 09:22 UTC
    it said "no such file or directory"
      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.....