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

The -w switch should not alter the behaviour of Perl, so please reduce your program to a small, self-contained program that exhibits the same behaviour.

Other than that, I can only recommend to use the following idiom:

open LOG, $file or die "Couldn't open '$file': $!";

which tells you both, the filename used and the reason why it failed. Maybe you have other programs writing to the file or something.

Replies are listed 'Best First'.
Re^4: problems opening logfile
by m0ve (Scribe) on Aug 10, 2007 at 09:36 UTC
    i'll try that...