No such thing as a small change | |
PerlMonks |
Re: Bug in split?by Corion (Patriarch) |
on Sep 27, 2017 at 13:44 UTC ( [id://1200195]=note: print w/replies, xml ) | Need Help?? |
Because that's what split is documented to do? Splits the string EXPR into a list of strings and returns the list in list context, or the size of the list in scalar context. (Prior to Perl 5.11, it also overwrote @_ with the list in void and scalar context. If you target old perls, beware.)
In Section
Seekers of Perl Wisdom
|
|