Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Section of $string into new array

by Eily (Priest)
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 chilling in the Monastery: (4)
As of 2016-09-26 05:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (476 votes). Check out past polls.