Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 pondering the Monastery: (11)
As of 2014-09-23 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (220 votes), past polls