Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Pattern Match n00b

by jeroenes (Priest)
on Mar 14, 2008 at 21:27 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://674299]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-19 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found