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.txtIn reply to Re: selecting columns from a tab-separated-values file
by mildside
in thread selecting columns from a tab-separated-values file
by ibm1620
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |