in reply to
Re: selecting columns from a tab-separated-values file
in thread selecting columns from a tab-separated-values file
This is nice. Couple of questions:
What's the first arg to split()? It appears to be a single blank char. How does that work to split upon tab chars?
In trySplitSliceLimit, wouldn't it be better to set LIMIT to 3, or in general to the number of fields you expect to extract?
And one observation for the record: the indices can appear in any order. To extract LAST, FIRST, and CITY, you'd write [2, 0, 5]