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

Re: Pattern Match n00b

by jeroenes (Priest)
on Mar 14, 2008 at 21:27 UTC ( #674299=note: print w/ replies, xml ) Need Help??


in reply to Pattern Match n00b

You could go splitting instead. Nested splits on ; and : could work. Or you could do it all in one statement with SuperSplit:

$array=supersplit(':',';',$mystring);

provided that the (semi)colons are true delimiters.

Cheers,
Jeroen

Couldn't resist the temptation after all those years ;-)

Log In?
Username:
Password:

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

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











    Results (364 votes). Check out past polls.