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

Re^3: Different behaviour in characters in string vs. array?

by ccn (Vicar)
on Dec 10, 2008 at 22:35 UTC ( [id://729536]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Different behaviour in characters in string vs. array?
in thread Different behaviour in characters in string vs. array?

perldoc -f split
A pattern matching the null string (not to be confused with a null pattern // , which is just one member of the set of patterns matching a null string) will split the value of EXPR into separate characters at each point it matches that way.

The characters are one byte length unless you specify utf8 encoding, so split splits every double byte russian charachter to a couple ASCII characters.

  • Comment on Re^3: Different behaviour in characters in string vs. array?

Log In?
Username:
Password:

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

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

    No recent polls found