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