|Perl: the Markov chain saw|
Re^2: selecting columns from a tab-separated-values fileby ibm1620 (Scribe)
|on Jan 22, 2013 at 03:58 UTC||Need Help??|
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]