Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Regular Expression to Extract Anything from Colon Delimited String

by McA (Priest)
on Oct 01, 2014 at 19:12 UTC ( #1102574=note: print w/replies, xml ) Need Help??


in reply to Regular Expression to Extract Anything from Colon Delimited String

Hi,

I'm not sure whether I misunderstood your question. But have you looked at function split for your purpose?

Regards
McA

  • Comment on Re: Regular Expression to Extract Anything from Colon Delimited String
  • Download Code

Replies are listed 'Best First'.
Re^2: Regular Expression to Extract Anything from Colon Delimited String
by GuiPerl (Acolyte) on Oct 01, 2014 at 19:35 UTC
    This did the trick:
    my ($a,$b,$c,$d,$e,$f,$g,$h,$i) =split(/:/,$line);
    Thanks.
      *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://1102574]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2021-10-27 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (91 votes). Check out past polls.

    Notices?