Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: Split() first 3 elements of @array

by Kenosis (Priest)
on Aug 28, 2012 at 20:48 UTC ( #990333=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Modern::Perl;
    
    ...
    say 'IP address: 10.10.10.10' =~ /IP\s+address:\s+([^\s]+)/;
    say '  IP address: 10.10.10.10' =~ /^\s*IP\s+address:\s+([^\s]+)/;
    say 'IP address: 10.10.10.10' =~ /^\s*IP\s+address:\s+([^\s]+)/;
    
  2. or download this
    10.10.10.10
    10.10.10.10
    10.10.10.10
    10.10.10.10
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2015-07-28 04:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls