in reply to Re: Why can't some of my modules do log output to a file?
in thread Why can't some of my modules do log output to a file?
I would suggest using flock, turning on Data::Dumper's Useqq option, and adding more error checking
Excellent advice! Whenever I use logging for troubleshooting, as a matter of reflex, I tend to further turn on autoflush on the logfile.
BTW, in addition to providing portable locking across Unix and Windows, flock enriches Perl poems, as demonstrated by pjf in this immortal line:
from his classic Perl poem my @chickens.join flock($other,@chickens) if split /from others/;
|
---|