good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: Assigning Variables to String Elementsby dave_the_m (Monsignor) |
on Dec 07, 2013 at 11:07 UTC ( [id://1066117]=note: print w/replies, xml ) | Need Help?? |
Split returns an array.Strictly speaking, no it doesn't. It returns a list, and in scalar context it is designed to return a list of one element, that element being the number of items that split would have returned in list context. This semantic distinction doesn't make any practical difference for split, but would for something like splice. Dave.
In Section
Seekers of Perl Wisdom
|
|