in reply to Re: Odd workings of splitin thread Odd workings of split
A tiny correction: split doesn't return undef, it returns the empty list. Accessing [ (empty list) ]->[0] is what produces the undef.
Ahhhhhhhhhhhhhh, that makes sense! Thanks!