Subject: | "autoflush" via package "FileHandle" |
My Net::Server.pm contains a $VERSION = '0.95'.
"Can't locate object method "autoflush" via package "FileHandle" at
/usr/lib/perl5/site_perl/5.8.8/Net/Server.pm line 285."
I figured my one machine was screwy or something, but it happened
everywhere, so I think it's a difference with perl 5.8.8 (or something
like that) instead.
I have been using the following "patch" with 100% success:
--- Server.pm.orig 2007-03-17 18:57:11.000000000 -0400
+++ Server.pm 2007-03-18 07:35:58.000000000 -0400
@@ -282,6 +282,7 @@
$prop->{log_file} = $1;
open(_SERVER_LOG, ">>$prop->{log_file}")
or die "Couldn't open log file \"$prop->{log_file}\" [$!].";
+ use FileHandle;
_SERVER_LOG->autoflush(1);
$prop->{chown_log_file} = 1;
--
If riding in an airplane is flying, then riding in a boat is swimming.
85 jumps, 36.0 minutes of freefall, 69.1 freefall miles.