Data::Stream::Bulk::Filter(3pm)

Data::Stream::Bulk::Filter3pm

Streamed filtering (block oriented)

Usage

        use Data::Stream::Bulk::Filter;
        Data::Stream::Bulk::Filter->new(
                filter => sub { ... },
                stream => $stream,
        );

Version

version 0.11

Overview

This class implements filtering of streams.

Attributes

filter

The code reference to apply to each block.

The block is passed to the filter both in $_ and as the first argument.

The return value should be an array reference. If no true value is returned the output stream does not end, but instead an empty block is substituted (the parent stream controls when the stream is depleted).

stream

The stream to be filtered

Methods

is_done
loaded

Delegated to "stream"

next

Calls "next" on "stream" and applies "filter" if a block was returned.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0
  2. 7–10
  3. 11–13

Author

Yuval Kogman <[email protected]>

From libdata-stream-bulk-perl 0.11-1.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.