Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Perl IP's etc


On Sun, Sep 16, 2001 at 11:39:33PM +1000, peterw wrote:
> Given an alpha numeric string of vaying length that contains 0 or more
> valid IP numbers(dotted quad decimal)and each IP(if there is one) is
> seperated form the next IP or other text by one or more spaces how can I
> use Perl to retrieve thes IP's  into an array ?

Presuming the string is in $_
@IP = split;

  Scott.