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

Re: print() on closed filehandle


You ought to test if the file is really open first, and you will hopefully get a more helpful error message:

open(LOGFILE, ">>junk.log") or die "Cannot open logfile, $!";

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