Changes for version v0.5.0 - 2026-11-27

  • Stages that hold values back say where what they give came from.
  • So the stages after them get each value's own original (roadmap 2026-0060). What take_last and batch give result_original changes, so it's a v0.5.0.
  • result_original promises the original of the value a result is made from, but after a stage that holds values back, such as take_last or batch, the stages after it saw the original of the value the run had got to last. Stages written before this don't change.
  • A stage may say holds => 1 among its parts, by name. In its step, as it keeps a value, kept_origin returns the value's origin, whose gives marks what the stage made from it, so the stages after it get that value's original, in a flush too (roadmap 2026-0060).
  • kept_origin is exported by Ekorn::Pipeline::Context, and by Tooling's :context.
  • take_last's value has its own original, where it had none.
  • A batch has no original, where one filled by a value had that value's.
  • Two new messages: "Expected stage #%s, made with gather, to hold values back in its step, not in a pipeline", and "Expected kept_origin in the step of a stage that holds values back".

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 a stage can ask about the result it's making
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.pm
in lib/Ekorn/Pipeline/Sink.pm
in lib/Ekorn/Pipeline/Sink.pm