Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: selecting columns from a tab-separated-values file

by Lotus1 (Chaplain)
on Jan 24, 2013 at 16:47 UTC ( #1015199=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    echo 'BrowserUK 1024' > bench.txt
    Measure-Command { .\buk.bat } >> bench.txt
    ...
    Measure-Command { perl kc.pl test.csv > kcout.csv} >> bench.txt
    echo 'mildside -- wrong order but testing anyway' >> bench.txt
    Measure-Command { .\cut '-f1,3,6' test.csv > cutout.csv} >> bench.txt
    
  2. or download this
    BrowserUK 1024
    Minutes           : 1
    ...
    Seconds           : 19
    Milliseconds      : 295
    Ticks             : 13392954883
    
  3. or download this
    #! perl -sw
    use strict;
    ...
        }
        splice( @$aref );
    }
    
  4. or download this
    #! perl -sw
    use strict;
    ...
    while( <> ) {
        print join( "\t", ( split /\t/, $_, 7 )[ 0, 2, 5 ]), "\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015199]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2015-07-07 05:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls