- To: peterw <peterw@xxxxxxxxxxxxxx>
- Subject: Re: [SLUG] Perl IP's etc
- From: Scott Howard <scott@xxxxxxxxxx>
- Date: Sun Sep 16 23:45:02 2001
- Cc: "slug@xxxxxxxxxxx" <slug@xxxxxxxxxxx>
- User-agent: Mutt/1.2.5i
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.