in reply to Re^2: Split operator in perl
in thread Split operator in perl

As a beginner to Perl, maybe you shouldn't worry about what weird results split will give if you give it weird inputs. I bet most Perl experts would have to guess at what 'ab'=~/(a|b)+/ returns (although they would likely guess correctly). More important would be to learn how to use split properly.