Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Having difficulties with "split"

by MidLifeXis (Monsignor)
on Apr 27, 2015 at 14:45 UTC ( [id://1124876]=note: print w/replies, xml ) Need Help??


in reply to Having difficulties with "split"

Instead of escaping the dots explicitly, you could set the RE to escape special characters for you. This is useful when you may need to expand an arbitrary delimiter.

@foo = split("\Q$delim\E", $string);

--MidLifeXis

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2024-04-23 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found