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]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: selecting columns from a tab-separated-values file
by Kenosis (Priest) on Jan 22, 2013 at 04:50 UTC | |
by CountZero (Bishop) on Jan 22, 2013 at 07:28 UTC | |
by Kenosis (Priest) on Jan 22, 2013 at 07:56 UTC | |
by Kenosis (Priest) on Jan 22, 2013 at 07:55 UTC |