Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^5: Surprised by split

by Anonymous Monk
on Aug 12, 2005 at 08:55 UTC ( [id://483215]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Surprised by split
in thread Surprised by split

I never suggested to use the character class to make split happy. split has nothing to do with - except that the problem illustrated itself with split. A character class was used to avoid using a backslash - as the behaviour of a backslash varies when "", '' and // is used - and might subsequent problems when strings are being interpolated in regular expressions.

When using character classes, you don't have to worry about the kind of quotes being used - or have to count how many backslashes you need.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-19 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found