1POE::Filter::Grep(3) User Contributed Perl Documentation POE::Filter::Grep(3)
2
3
4
6 POE::Filter::Grep - POE Data Grepping Filter
7
9 $filter = POE::Filter::Grep->new(Code => sub {...});
10 $filter = POE::Filter::Grep->new(Put => sub {...}, Get => sub {...});
11 $arrayref_of_transformed_data = $filter->get($arrayref_of_raw_data);
12 $arrayref_of_streamable_data = $filter->put($arrayref_of_data);
13 $arrayref_of_streamable_data = $filter->put($single_datum);
14 $filter->modify(Code => sub {...});
15 $filter->modify(Put => sub {...}, Get => sub {...});
16
18 The Grep filter takes the coderef or coderefs it is given using the
19 Code, Get, or Put parameters and applies them to all data passing
20 through get(), put(), or both, as appropriate. It it very similar to
21 the "grep" builtin function.
22
24 modify
25 POE::Filter::Grep::modify
26
27 Takes a list of parameters like the new() method, which should cor‐
28 respond to the new get(), put(), or general coderef that you wish
29 to use.
30
31 * See POE::Filter.
32
34 POE::Filter; POE::Filter::Grep; POE::Filter::Line; POE::Filter::Stack‐
35 able; POE::Filter::Reference; POE::Filter::Stream; POE::Filter::Record‐
36 Block; POE::Filter::HTTPD
37
39 None known.
40
42 The Grep filter was contributed by Dieter Pearcey. Rocco Caputo is
43 sure to have had his hands in it.
44
45 Please see the POE manpage for more information about authors and con‐
46 tributors.
47
48
49
50perl v5.8.8 2006-09-01 POE::Filter::Grep(3)