Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Regular Expression to Extract Anything from Colon Delimited String

by GuiPerl (Acolyte)
on Oct 01, 2014 at 19:35 UTC ( [id://1102577]=note: print w/replies, xml ) Need Help??


in reply to Re: Regular Expression to Extract Anything from Colon Delimited String
in thread Regular Expression to Extract Anything from Colon Delimited String

This did the trick:
my ($a,$b,$c,$d,$e,$f,$g,$h,$i) =split(/:/,$line);
Thanks.
  • Comment on Re^2: Regular Expression to Extract Anything from Colon Delimited String
  • Download Code

Replies are listed 'Best First'.
Re^3: Regular Expression to Extract Anything from Colon Delimited String
by Solo (Deacon) on Oct 01, 2014 at 19:55 UTC
    *Mapping $a, $b, $c, $d, $e, $f, $g, $h, $i to $count, $grade, $pos, $name, $date, $country, $age, $vacant is left as an exercise for the reader.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found