http://qs321.pair.com?node_id=1066117


in reply to Re^3: Assigning Variables to String Elements
in thread Assigning Variables to String Elements

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.