Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 having an uproarious good time at the Monastery: (6)
As of 2014-09-21 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls