in reply to selecting columns from a tab-separated-values file
What OS are you using? This answer might seem a bit odd given this is a Perl forum, but sometimes the best solution isn't Perl. (Blasphemy?)
If you are in a unix environment, and all you need to do is extract the fields as described above then you can use the unix command line program 'cut'. This does exactly what you want without needing to write any code.
cut -f3,1,6 inputfile.txt > outputfile.txt
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: selecting columns from a tab-separated-values file
by Lotus1 (Vicar) on Jan 22, 2013 at 01:49 UTC | |
by spacebar (Beadle) on Jan 22, 2013 at 03:05 UTC | |
by Lotus1 (Vicar) on Jan 22, 2013 at 04:35 UTC | |
Re^2: selecting columns from a tab-separated-values file
by mildside (Friar) on Jan 22, 2013 at 01:22 UTC | |
Re^2: selecting columns from a tab-separated-values file
by ibm1620 (Hermit) on Jan 22, 2013 at 03:29 UTC | |
by mildside (Friar) on Jan 22, 2013 at 03:39 UTC |
In Section
Seekers of Perl Wisdom