in reply to Re^2: Use of uninitialized value in open
in thread Use of uninitialized value in open

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.