After reading the source of DDS, I came up with this patch based on the Perl Monks code:
$ cat quote.rc
{
no warnings 'redefine';
sub Data::Dump::Streamer::_qquote {
my $s = shift;
return "'$s'";
}
}
$ re.pl --rcfile ./quote.rc
$ {'žůžo' => ['bříško']}
$HASH1 = { 'žůžo' => [ 'bříško' ] };
I have no idea what could get broken by the change, but since my use case is quite simple, I’m happy with this hack. If my house burns down because of it, I’ll post an update.