NAME

Data::Dump::AutoEncode - dumps encoded data structure for debugging

SYNOPSIS

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

DESCRIPTION

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.

EXPORTED FUNCTION

edump(...)

Returns a recursively-encoded string of a Perl data structure.

FUNCTIONS

dump(...)

You can explicitly export edump function as dump.

set_encoding( encoding )

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.

SEE ALSO

Data::Dump

Data::Dumper::AutoEncode

AUTHOR

Kenichi Ishigaki, <ishigaki@cpan.org>

COPYRIGHT AND LICENSE

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.