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

VERSION

9       version 0.11
10

SYNOPSIS

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

DESCRIPTION

20       This class implements filtering of streams.
21

ATTRIBUTES

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

METHODS

38       is_done
39       loaded
40           Delegated to "stream"
41
42       next
43           Calls "next" on "stream" and applies "filter" if a block was
44           returned.
45

AUTHOR

47       Yuval Kogman <nothingmuch@woobling.org>
48
50       This software is copyright (c) 2012 by Yuval Kogman.
51
52       This is free software; you can redistribute it and/or modify it under
53       the same terms as the Perl 5 programming language system itself.
54
55
56
57perl v5.28.1                      2012-02-14     Data::Stream::Bulk::Filter(3)
Impressum