Changes for version v0.4.0 - 2026-11-25

  • pipe gives what a pipeline gives, in either context.
  • Ekorn::Pipeline::Pipes' pipe, in scalar context, gives how many results came out, or a sink's result, as a pipeline does, not the first result. It ships the rest of roadmap 2026-0053, and changes what pipe gives in scalar context, which code may depend on, so it's v0.4.0.
  • pipe gives what a pipeline of its stages, called with the object, gives: in scalar context, how many results came out, or a sink's result, a list sink's as an array reference. It gave the first result, or undef, unlike any other run: one of the first methods written, before a run's scalar context was settled. For one value, read it in list context, my($first) = $object->pipe(...), or end with keep_first. Test2's is takes its first argument in scalar context, so is $object->pipe(...), 42 now compares a count. DBIx::Squirrel's handles inherit pipe. (roadmap 2026-0053)

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/Sink.pm
in lib/Ekorn/Pipeline/Sink.pm