Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: pinger - ping a range of hosts

by idnopheq (Chaplain)
on Apr 26, 2001 at 15:31 UTC ( #75747=note: print w/ replies, xml ) Need Help??


in reply to Re: pinger - ping a range of hosts
in thread pinger - ping a range of hosts

The errata for Perl Cookbook at O'Reilly has a modified ip validation re. It is also in ping for ppt by me.

m{ ^ ( \d | [01]?\d\d | 2[0-4]\d | 25[0-5] ) \. ( \d | [01]?\d\d | 2[0-4]\d | 25[0-5] ) \. ( \d | [01]?\d\d | 2[0-4]\d | 25[0-5] ) \. ( \d | [01]?\d\d | 2[0-4]\d | 25[0-5] ) $ # from the Perl Cookbook, Reci +pe 6.23, }xo # pages 218-9, as fixed in the + 01/00 reprint

HTH
--
idnopheq
Apply yourself to new problems without preparation, develop confidence in your ability to to meet situations as they arrise.


Comment on Re: Re: pinger - ping a range of hosts
Download Code
Re^3: pinger - ping a range of hosts
by choroba (Abbot) on Jun 02, 2010 at 15:45 UTC
    ١.٢.٣.٤ is not a valid IP, it matches the regex though :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://75747]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-08-02 06:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls