Skip to content

Instantly share code, notes, and snippets.

@ernix
ernix / test_dumper.pl
Created January 19, 2019 15:02 — forked from dtonhofer/test_dumper.pl
Comparing behaviour of Perl Data::Dumper when using "Pure Perl" and "XS" mode for non-iso-8859-1 codepoints
#!/usr/bin/perl
use strict;
use warnings;
use utf8; # Meaning "This lexical scope (i.e. file) contains utf8"
use open qw(:std :utf8);
use autodie;
use Encode;
use File::Temp qw(tempdir);