POE::Component::Client::MPD::Types - types used in the distribution
version 2.001
This module implements the specific types used by the distribution, and exports them. It is using Sub::Exporter underneath, so you can use all the shenanigans to change the export names.
Current types defined and exported:
Cooking - a simple enum to know what to do about that data
Cooking
raw - data should not be touched
raw
as_items - data is to be transformed as Audio::MPD::Common::Item
as_items
as_kv - data is to be cooked as key/values (hash)
as_kv
strip_first - data should have its first field stripped
strip_first
Transform - a simple enum to know what to do about the data, after it has been cooked. Possible values are:
Transform
as_scalar - return the first element instead of the full list
as_scalar
as_stats - transform the data from key/value to Audio::MPD::Common::Stats
as_stats
Audio::MPD::Common::Stats
as_status - transform the data from key/value to Audio::MPD::Common::Status
as_status
Audio::MPD::Common::Status
Jerome Quelin
This software is copyright (c) 2007 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install POE::Component::Client::MPD, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::Client::MPD
CPAN shell
perl -MCPAN -e shell install POE::Component::Client::MPD
For more information on module installation, please visit the detailed CPAN module installation guide.