Changes for version v0.3.10 - 2026-11-24
- Ekorn::Pipeline::CSV reads and writes CSV and TSV files, as JSON's module does JSON: a source or a sink given a file, and a stage given neither, with Text::CSV, which Ekorn recommends rather than requires. And a stop after a tee no longer loses what the tee's branch holds.
- It ships roadmap 2026-0049 and 2026-0050. It adds, and fixes one thing.
- Ekorn::Pipeline::CSV: from_csv and to_csv. Rows are arrays, or hashes keyed by a header, whose names, munged if asked, as Text::CSV's munge_column_names does, are the run's columns, as DBIx::Squirrel's are; to_csv writes a header, and hashes in its order. Files are UTF-8 unless encoding says. A row that won't parse, text that won't decode, and a character a file's encoding can't hold each croak at their row, rather than ending the run quietly or writing something else. Text::CSV is loaded when either is first called, and its absence croaks then. (roadmap 2026-0049)
- Ekorn::Pipeline::Tooling exports both in :csv, and in :all.
- The reference and the how-to describe them, and the how-to's "Tell the stages about the run" points to from_csv.
- Fixed: when a stop after a tee, such as take's or an iterator's first, ended the main run, the tee's branch was told it stopped, and its flushes weren't called, so what they held, such as a batch's last rows bound for a writer, was lost without a word. The tee now closes its branch in its end, so its flushes run and its ends are told done. A main run that dies still only finishes it. A tee whose branch has a flush now has an end too. (roadmap 2026-0050)
Documentation
Ekorn::Pipeline user guide
Ekorn::Pipeline reference
Modules
run values through a list of stages
read and write CSV and TSV, as sources, stages or sinks
what Ekorn's types are made from
report Ekorn::Pipeline's errors at the caller's line
words that make Ekorn's types
one run, fed values as they arrive
a stage made afresh for each run, told when its values run out
one run, handing out its values as they're pulled
read and write JSON and JSON Lines, as sources, stages or sinks
|, |= and @{} for Ekorn's types
pipe and tap methods, running an object through stages
a sink made afresh for each run
ready-made sinks, needing only Perl
a source made afresh for each run
ready-made sources, needing only Perl
a stage, as an object
stages gathering values: batch and collect
stages taking or dropping values: take, drop, take_if, drop_if, take_while and drop_while
stages run for their side effects: peek, count_into, dump_to and tee
end a pipeline early
name pipelines as the program compiles, each with a function
Ekorn's stages, sources, sinks and words, from one module
Provides
in lib/Ekorn/Pipeline/CSV.pm
in lib/Ekorn/Pipeline/Operators.pm
in lib/Ekorn/Pipeline/Operators.pm
in lib/Ekorn/Pipeline/Sink.pm
in lib/Ekorn/Pipeline/Sink.pm