in reply to Use of uninitialized value in open

Corion already gave the correct answer. Let me add pointers to the documentation.

"perldoc -f open" documents the open function.

If you want a gentler introduction, "perldoc perlopentut" provides a nice tutorial about how to use open in its various forms. You can do much more than just opening files it ;-)

Replies are listed 'Best First'.
Re^2: Use of uninitialized value in open
by pcouderc (Monk) on Jun 10, 2008 at 08:38 UTC
    Thank you two.
    My mistake is too that I took this snippet form the web, where it is wrong, and I did not think to suspect it...

      I suspect the web version didn't have "my $LOGFILE;".

      It's using an old syntax you'd best avoid in favour of the one Corion showed.