Data::Dump::AutoEncode - dumps encoded data structure for debugging
use Data::Dump::AutoEncode; print edump(...); # encoded into the encoding your terminal uses # if you really need to change encoding Data::Dump::AutoEncode::set_encoding('utf-8'); print edump(...); # encoded into utf-8
This module encodes each (unblessed) string in data structure into the encoding your terminal uses (or into the encoding you specified explicitly) recursively, and without escaping.
You may find it useful when you dump a result of some API access with one-liner, etc.
Returns a recursively-encoded string of a Perl data structure.
You can explicitly export edump function as dump.
edump
dump
By default, Data::Dump::AutoEncode encodes strings into the encoding your terminal uses (via Term::Encoding). If you need to change this behavior, you can set other encoding with this function.
Data::Dump
Data::Dumper::AutoEncode
Kenichi Ishigaki, <ishigaki@cpan.org>
This software is copyright (c) 2014 by Kenichi Ishigaki.
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 Data::Dump::AutoEncode, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Dump::AutoEncode
CPAN shell
perl -MCPAN -e shell install Data::Dump::AutoEncode
For more information on module installation, please visit the detailed CPAN module installation guide.