Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: split() behavior

by PeterPeiGuo (Hermit)
on Jan 20, 2011 at 04:34 UTC ( [id://883240]=note: print w/replies, xml ) Need Help??


in reply to split() behavior SOLVED

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

You can find the above in perldoc for split. There is also one example in the perldoc showing this behavior, you can check it out.

Peter (Guo) Pei

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 03:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found