http://www.perlmonks.org?node_id=1014732


in reply to Re: selecting columns from a tab-separated-values file
in thread selecting columns from a tab-separated-values file

I just tried your solution with an input file of 100,000 lines but I only got 65537 lines of output. Here is the command line I used to run the test:

perl ibuf.pl -B=1024 < testdata.csv | perl obuf.pl -B=1024 > out.csv

Replies are listed 'Best First'.
Re^3: selecting columns from a tab-separated-values file
by BrowserUk (Patriarch) on Jan 22, 2013 at 17:25 UTC

    Damn! I missed/dropped the last line of obuf.pl when I C&P's the code:

    print $obuf;

    Now corrected above, Thank you.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.