Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Regex and splitting

by astronogun (Sexton)
on Apr 29, 2012 at 04:18 UTC ( [id://967892]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open my $infile, "<", "test.txt" or die "cannot open input: $!";
    my @infile1= <$infile>;
    ...
        ($ip) = split /,/, $dns1;
        print "$ip";}
    }
    
  2. or download this
     
    host1    dns:192.168.243.30,asdf
    host2    dns:192.168.243.1,qwert
    

Log In?
Username:
Password:

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

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

    No recent polls found