1Data::Stream::Bulk::FilUtseerr(3C)ontributed Perl DocumeDnattaat:i:oSntream::Bulk::Filter(3)
2
3
4

NAME

6       Data::Stream::Bulk::Filter - Streamed filtering (block oriented)
7

SYNOPSIS

9           use Data::Stream::Bulk::Filter;
10
11           Data::Stream::Bulk::Filter->new(
12               filter => sub { ... },
13               stream => $stream,
14           );
15

DESCRIPTION

17       This class implements filtering of streams.
18

ATTRIBUTES

20   filter
21       The code reference to apply to each block.
22
23       The block is passed to the filter both in $_ and as the first argument.
24
25       The return value should be an array reference. If no true value is
26       returned the output stream does not end, but instead an empty block is
27       substituted (the parent stream controls when the stream is depleted).
28
29   stream
30       The stream to be filtered
31

METHODS

33   is_done
34   loaded
35       Delegated to "stream"
36
37   next
38       Calls "next" on "stream" and applies "filter" if a block was returned.
39

AUTHOR

41       Yuval Kogman <nothingmuch@woobling.org>
42
44       This software is copyright (c) 2010 by Yuval Kogman.
45
46       This is free software; you can redistribute it and/or modify it under
47       the same terms as the Perl 5 programming language system itself.
48
49
50
51perl v5.12.1                      2010-08-24     Data::Stream::Bulk::Filter(3)
Impressum