Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.

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