Skip Menu |

This queue is for tickets about the Net-Server CPAN distribution.

Report information
The Basics
Id: 25520
Status: resolved
Priority: 0/
Queue: Net-Server

People
Owner: Nobody in particular
Requestors: jettero [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



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.
Interesting, I think that it normally works because we were using IO::Socket which I had thought were bringing in the IO::Handle and FileHandle classes. Oh well - we are now specific and use FileHandle at the top. In 0.96 Paul
Interesting, I think that it normally works because we were using IO::Socket which I had thought were bringing in the IO::Handle and FileHandle classes. Oh well - we are now specific and use FileHandle at the top. In 0.96 Paul