Data::Visitor::EncodeEncode/Decode Values In A Structure | |
Download |
Data::Visitor::Encode Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Daisuke Maki
- Publisher web site:
- http://search.cpan.org/~dmaki/
Data::Visitor::Encode Tags
Data::Visitor::Encode Description
Encode/Decode Values In A Structure Data::Visitor::Encode is a Perl module to encode/decode values in a structure.SYNOPSIS use Data::Visitor::Encode; my $dev = Data::Visitor::Encode->new(); my %hash = (...); # assume data is in Perl native Unicode $dev->encode('euc-jp', \%hash); # now strings are in euc-jp $dev->decode('euc-jp', \%hash); # now strings are back in unicode $dev->utf8_on(\%hash); $dev->utf8_off(\%hash);Data::Visitor::Encode visits each node of a structure, and returns a new structure with each node's encoding (or similar action). If you ever wished to do a bulk encode/decode of the contents of a structure, then this module may help you.Starting from 0.09000, you can directly use the methods without instantiating the object: Data::Visitor::Encode->encode('euc-jp', $obj); # instead of Data::Visitor::Encode->new->encod('euc-jp', $obj) Requirements: · Perl
Data::Visitor::Encode Related Software