[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: print() on closed filehandle


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


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.