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

Re: Don't understand behavior of this split

by psini (Deacon)
on Aug 26, 2010 at 14:28 UTC ( [id://857466]=note: print w/replies, xml ) Need Help??


in reply to Don't understand behavior of this split

From perlfunc for split operator:

" If the PATTERN contains parentheses, additional list elements are created from each matching substring in the delimiter."

So what you get is the expected behaviour

Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."

  • Comment on Re: Don't understand behavior of this split

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-26 05:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found