Christian Hansen > Class-Param-0.1 > Class::Param::Encoding

Download:
Class-Param-0.1.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Class::Param::Encoding - Class Param Encoding Class

SYNOPSIS ^

    $param = Class::Param->new( smiley => "\xE2\x98\xBA" );
    $param = Class::Param::Encoding->new( $param );

    if ( $param->get('smiley') eq "\x{263A}" ) {
        # true
    }

DESCRIPTION ^

A decorator that decodes param values on the fly.

METHODS ^

new ( $param [, $encoding ] )

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.

SEE ASLO ^

Class::Param.

AUTHOR ^

Christian Hansen chansen@cpan.org

COPYRIGHT ^

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: