Rechercher une page de manuel
POE::Filter::Map.3pm
Langue: en
Version: 2006-09-05 (mandriva - 01/05/08)
Section: 3 (Bibliothèques de fonctions)
NAME
POE::Filter::Map - POE Data Mapping FilterSYNOPSIS
$filter = POE::Filter::Map->new( Code => sub {...}, ); $filter = POE::Filter::Map->new( Put => sub {...}, Get => sub {...}, ); $arrayref_of_transformed_data = $filter->get($arrayref_of_raw_data); $arrayref_of_streamable_data = $filter->put($arrayref_of_data); $arrayref_of_streamable_data = $filter->put($single_datum); $filter->modify( Code => sub {...} ); $filter->modify( Put => sub {...}, Get => sub {...} );
DESCRIPTION
The Map filter takes the coderef or coderefs it is given using the Code, Get, or Put parameters and applies them to all data passing through get(), put(), or both, as appropriate. It it very similar to the "map" builtin function.PUBLIC FILTER METHODS
- modify
- POE::Filter::Map::modify
Takes a list of parameters like the new() method, which should correspond to the new get(), put(), or general coderef that you wish to use.
- *
- See POE::Filter.
SEE ALSO
POE::Filter; POE::Filter::Grep; POE::Filter::Line; POE::Filter::Stackable; POE::Filter::Reference; POE::Filter::Stream; POE::Filter::RecordBlock; POE::Filter::HTTPDBUGS
None known.AUTHORS & COPYRIGHTS
The Map filter was contributed by Dieter Pearcey. Rocco Caputo is sure to have had his hands in it.Please see the POE manpage for more information about authors and contributors.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre