Setting Data::Dumper::Terse in code makes .ptkdb unreadable
Brought to you by:
svetoslavm
If the Data::Dumper::Terse variable is set by 1
globally .ie not with local, Devel::ptkdb::SaveState
will not save valid configuration to file. The object
will inherit the global setting and $d->Terse() will be
true
A invalid configuration file typically looks like this:
{
'_<test.pl' => [
{
'expr' => undef,
'value' => '1',
'text' => 'print "foo\\n";
',
'fname' => 'test.pl',
'type' => 'user',
'line' => 8
}
]
}
[]
undef
'1385x978+-4+-4'
Notice that the variable names are missing.
If you add the code
$d->Terse(0);
at line 3945 in Devel::ptkdb.pm then things seem to be ok.