in reply to Re: The future of Text::CSV_XS - TODO
in thread The future of Text::CSV_XS - TODO
The function csv () is streaming! (and well documented as such, see e.g. dumping database tables)
Believe me, I have had the same feeling with file-names as arguments to in and out, and I actually started coding on that, but in the end, you do not want it, as it causes too many undocumantable catch-22's.
csv (in => csv (in => "a.csv, ...), out => "b.csv") is the best alternative and works quite well
My personal fav use of streaming is csv (in => $fh, out => undef, bom => 1, on_in => sub { ... process %_ ... });. If files are really large, this can be used for streaming file to file too using a second handle.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: The future of Text::CSV_XS - TODO
by ikegami (Patriarch) on Dec 19, 2024 at 20:40 UTC | |
by Tux (Canon) on Dec 27, 2024 at 09:29 UTC | |
Re^3: The future of Text::CSV_XS - TODO
by ikegami (Patriarch) on Dec 19, 2024 at 20:09 UTC |