in reply to Convert JSON to Perl and back with unicode
I am struggling to make either of Data::Dump or Data::Dumper to print rendered(?) unicode characters rather than those ugly escapes but I can't seem to succeed.
Normally I use:
#!/usr/bin/perl -CSDA use utf8; use Modern::Perl qw{2017}; use Data::Dumper; print STDERR Dumper(\%mydatatoshow) =~ s/\\x\{([0-9a-f]{2,})\}/chr(hex +($1))/ger;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Convert JSON to Perl and back with unicode
by choroba (Cardinal) on Apr 11, 2020 at 00:00 UTC |
In Section
Seekers of Perl Wisdom