Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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

by Lotus1 (Curate)
on Jan 22, 2013 at 17:03 UTC ( #1014732=note: print w/replies, xml ) Need Help??

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 -B=1024 < testdata.csv | perl -B=1024 > out.csv

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

    Damn! I missed/dropped the last line of 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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014732]
[perldigious]: I didn't want to tie up memory unecessarily basically, I wanted to "delete" it specifically to free it up, and wasn't sure I was even accomplishing that.
[stevieb]: perldigious You should start by writing some unit tests. That'll ensure current functionality doesn't break with changes.
[choroba]: unit tests++
[choroba]: The only problem you can't solve by adding more tests is the problem of having too many tests.
[stevieb]: choroba Been there, done that :) Better too many than not enough though!

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-07-21 20:00 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (335 votes). Check out past polls.