Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Section of $string into new array

by Eily (Deacon)
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 chanting in the Monastery: (6)
As of 2014-12-28 23:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls