Keep It Simple, Stupid | |
PerlMonks |
Re: split() behaviorby PeterPeiGuo (Hermit) |
on Jan 20, 2011 at 04:34 UTC ( [id://883240]=note: print w/replies, xml ) | Need Help?? |
"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
In Section
Seekers of Perl Wisdom
|
|