more useful options | |
PerlMonks |
Re: Don't understand behavior of this splitby psini (Deacon) |
on Aug 26, 2010 at 14:28 UTC ( [id://857466]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|