Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Section of $string into new array

by Eily (Chaplain)
on Mar 17, 2014 at 17:56 UTC ( #1078643=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<INPUt>) 
    { 
      push @array, $_;
    }
    
  2. or download this
    while (<INPUT>)
    {
       if (/$pattern/) # matches work by default on $_
    ...
           do something with $_;
       }
    }
    
  3. or download this
    $inner = "([0-5][0-9]|[0-9][1-8])";
    $outer = "$inner.$inner.$inner/[0-6]"; # Can also be written $outer = 
    +join('.', $inner x 3) . "[0-6]"
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2014-10-25 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls