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."
In reply to Re: Don't understand behavior of this split
by psini
in thread Don't understand behavior of this split
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |