perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Gormley <cl...@traveljury.com>
Subject Re: print() on closed filehandle
Date Mon, 30 Oct 2006 20:34:54 GMT
what error is the open giving? 
> open (LOGFILE, ">>junk.log") ;

open (LOGFILE, ">>junk.log") 
    or die "Couldn't open junk.log for appending : $!";

Also, it may be that somewhere LOGFILE is defined as a constant, and so
the bare filehandle LOGFILE is being interpreted as LOGFILE()

Rather use lexical file handles.

Clint


Mime
View raw message