Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Question: Capturing a repeated pattern

by rubasov (Friar)
on Apr 08, 2010 at 22:05 UTC ( #833647=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $str = 'somename   1000  0.24  280  2 2576.9  2731.9  12.0  4195.3'
    +;
    my @array = split /\s+/, $str;
    
  2. or download this
    die "invalid input format: '$str'"
      if $str !~ / \A [a-z]\w* (?: \s+ [\d.]+ ){8} \z /ixo;
    my @array = split /\s+/, $str;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2016-06-28 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (356 votes). Check out past polls.