Skip Menu |

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

Report information
The Basics
Id: 80122
Status: resolved
Priority: 0/
Queue: Net-NTPTime

People
Owner: Nobody in particular
Requestors: m.nooning [...] comcast.net
Cc:
AdminCc:

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



Subject: Net::NTPTime version 1.00 bug, and a fix, for Windows XP, Perl 5.14.2
Date: Wed, 10 Oct 2012 21:50:40 -0400
To: bug-Net-NTPTime [...] rt.cpan.org
From: "m.nooning" <m.nooning [...] comcast.net>
First, nice module. I was getting the bug below on my Windows XP SP2, IBM Thinkpad. Undefined subroutine &Net::NTPTime::inet_aton To fix it, I needed to make the change from "require" to "use" as shown below to the file NTPTime.pm. package Net::NTPTime; #require Socket; use Socket; No need to respond. Thanks again for doing/maintaining the module.
On Wed Oct 10 21:50:49 2012, m.nooning@comcast.net wrote: Show quoted text
> First, nice module. > > I was getting the bug below on my Windows XP SP2, IBM Thinkpad. > > Undefined subroutine &Net::NTPTime::inet_aton > > To fix it, I needed to make the change from "require" to "use" as shown > below to the file NTPTime.pm. > > package Net::NTPTime; > > #require Socket; > use Socket; > > No need to respond. > Thanks again for doing/maintaining the module. >
Thanks for the fix. The same thing happens on Linux. This was reported 5 years ago - is the module being maintained?
It took 8 years, but yes, it's being maintained. I took the ticket opener's advice and switched to "use" rather than "require" for the Socket module. Updated in 1.01. Thanks for the feedback!