in reply to pinger - ping a range of hosts

I only have 2 comments really :) -- Dave

Replies are listed 'Best First'.
Re: Re: pinger - ping a range of hosts
by idnopheq (Chaplain) on Apr 26, 2001 at 15:31 UTC
    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.

      ١.٢.٣.٤ is not a valid IP, it matches the regex though :)