NAME

Deep::Encode - Perl extension for coding and decoding strings in arrays and hashes ( reqursive )

SYNOPSIS

use Deep::Encode;
use Encode; # optional

my $s = [ 1, 2, "string in cp1251 encoding" ];

deep_from_to( $s, "cp1251", "utf8" ); # convert $s to [ [ 1, 2, "string in utf8 encoding" ];
# Using Encode::from_to( $str,  , ,)

deep_utf8_encode( $s ) ; # call utf8::encode on every string in $s

deep_utf8_decode( $s ) ; # call utf8::decode on every string in $s

DESCRIPTION

This module allow apply Encode::from_to, utf8::decode, utf8::encode function on every scalar in array or hash recursively

EXPORT

deep_from_to( $s, $from, $to )
deep_utf8_decode( $s )
deep_utf8_encode( $s )

SEE ALSO

Encode, utf8

AUTHOR

A.G. Grishaev, <grian@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2010 by A.G. Grishaev.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.