PerlIO::via::UnicodeDebug - debug Unicode input/output
use Unicode::Debug; binmode STDOUT, ':via(UnicodeDebug)' or die $!; print "Héllò Wörld\n";
Or perhaps in your test suite...
use strict; use warnings; use utf8; use Test::More; if (eval { require Unicode::Debug }) { my $builder = Test::More->builder; binmode $builder->$_, ':via(UnicodeDebug)' for qw/ output failure_output todo_output /; } ...; # Unicode-emitting tests go here
Passes IO through Unicode::Debug.
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Unicode-Debug.
Unicode::Debug, Devel::Unicode.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2012-2013 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install Unicode::Debug, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Unicode::Debug
CPAN shell
perl -MCPAN -e shell install Unicode::Debug
For more information on module installation, please visit the detailed CPAN module installation guide.