Skip Menu |

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

Report information
The Basics
Id: 1233
Status: resolved
Priority: 0/
Queue: Net-Ping-External

People
Owner: Nobody in particular
Requestors: mku [...] de.uu.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.10
Fixed in: 0.11



Subject: Output of ping on Windows
Hi, nice module (I ran in the trouble of pinging from perl on Windows being no admin). The typical output of the ping command on Windows NT4 / W2K is: c:\>ping www.perl.com Pinging www.perl.com [208.201.239.8] with 32 bytes of data: Reply from 208.201.239.8: bytes=32 time=187ms TTL=241 So IMHO line 69 of External.pm should be changed to something like: - return 1 if $result =~ /time?\d*ms/; + return 1 if $result =~ /time.?\d+ms/;
Show quoted text
> The typical output of the ping command on Windows NT4 / W2K is: > > c:\>ping www.perl.com > > Pinging www.perl.com [208.201.239.8] with 32 bytes of data: > > Reply from 208.201.239.8: bytes=32 time=187ms TTL=241 > > So IMHO line 69 of External.pm should be changed to something like: > - return 1 if $result =~ /time?\d*ms/; > + return 1 if $result =~ /time.?\d+ms/;
c:\>ping localhost Pinging C0108832 [127.0.0.1] with 32 bytes of data: Reply from 127.0.0.1: bytes=32 time<10ms TTL=128 The regexp fix should also work for this case too.