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