Data::...Filter(3pm)
π Data::Stream::Bulk::Filter β the manual, but make it make sense π
okay bestie, you found the page for Data::Stream::Bulk::Filter, which lives in the User Contributed Perl Documentation section of the manual (that's the 3pm part, iykyk). It's a Perl module, it's version 0.11, and it's about filtering streams. Let's get into it π«Ά
β¨ VERSION β¨
This is version 0.11. Slay.
πΈ SYNOPSIS πΈ
here's the vibe, literally just this:
use Data::Stream::Bulk::Filter;
Data::Stream::Bulk::Filter->new(
filter => sub { ... },
stream => $stream,
);
that's it. that's the whole entrance. iconic π
π¦ DESCRIPTION π¦
so like. this class implements filtering of streams. that's the whole thing. it filters streams. block oriented, streamed filtering. periodt β¨
π ATTRIBUTES π
filterβ the code reference you apply to each block. okay so the block gets passed to the filter both in$_and as the first argument, so you can grab it either way, no cap. and here's the part you gotta pay attention to: the return value should be an array reference. if no true value comes back, the output stream does not end β instead an empty block gets substituted in its place. the parent stream is the one who decides when the stream is actually depleted, not you. so don't be out here thinking an empty return kills the stream, because it fr fr does not πstreamβ the stream that's getting filtered. the one catching hands fromfilter, basically.
π METHODS π
is_doneloaded
both of these are delegated to stream. they don't do their own thing, they just pass the question along. teamwork, bestie π€
nextβ callsnextonstream, and if a block came back, it appliesfilterto it. that's the whole method. short, sweet, ate π
π AUTHOR π
Yuval Kogman <nothingmuch@woobling.org> β shoutout to the author, thank you for your service π«‘π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2012 by Yuval Kogman.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go wild, but respectfully πΈ
and that's the whole page, bestie!! this one was rendered with perl v5.32.0, dated 2021-01-01, and it's the Data::...Filter(3pm) page under User Contributed Perl Documentation. mwah, go filter something πβ¨π¦
π¦ where this page comes from
- debian bookworm: libdata-stream-bulk-perl 0.11-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdata-stream-bulk-perl 0.11-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libdata-stream-bulk-perl 0.11-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdata-stream-bulk-perl 0.11-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms