Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Simplify This

by tcf22 (Priest)
on Sep 30, 2003 at 18:56 UTC ( [id://295395]=note: print w/replies, xml ) Need Help??


in reply to Simplify This

Try this:
use strict; use Data::Dumper; my $record = " 100.100.100.100 1COMPUTER1 09/13/30828 22:48:0 +5"; my @iparray = split(/\./, ($record =~ /^\s+([\d\.]+?)\s/)[0]); print Dumper \@iparray; __OUTPUT__ $VAR1 = [ '100', '100', '100', '100' ];

- Tom

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-19 02:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found