Subject: | Strange behaviour with Useqq for \0 |
#!/usr/bin/perl
use Data::Dumper;
my %hash = ( string => "1\r5\09h\n", test => "1\r4\0t\n" );
my $h = { server => "2\03\04" };
$Data::Dumper::Useqq = 1;
print Dumper \%hash,$h;
And the output is:
$VAR1 = {
"test" => "1\r4\0t\n",
"string" => "1\r5\0009h\n"
};
$VAR2 = {
"server" => "2\3\4"
};
If \0 appears in a value of a hash just before a character everything
is fine. If it is before a digit, three 0's are displayed. If \0 is in
the value of a hashref, the 0 is erased...