| Class-Param documentation | view source | Contained in the Class-Param distribution. |
Class::Param::Encoding - Class Param Encoding Class
$param = Class::Param->new( smiley => "\xE2\x98\xBA" );
$param = Class::Param::Encoding->new( $param );
if ( $param->get('smiley') eq "\x{263A}" ) {
# true
}
A decorator that decodes param values on the fly.
Constructor. Takes two arguments, first should be a instance of Class::Param::Base
and second should be valid Encode encoding name, defaults to UTF-8.
Christian Hansen chansen@cpan.org
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
| Class-Param documentation | view source | Contained in the Class-Param distribution. |