allows you to handle multiple cases. For example, suppose
that instead of YAML you want to output JSON; you might start with this:
use Data::Tubes qw< pipeline >;
pipeline(
['Source::iter
ta-04.txt >]);
There's a problem though: for more than one input record, the output is
not valid JSON:
{"name":"Foo","nick":"foorious","age":32}
{"name":"Bar","nick":"barious","age":19}
{"n
item *
you still have to figure out how to print out the separator comma!
=back
Unfortunately, JSON is quite picky in the presence of separator commas,
in that it does not allow you to have a trail