Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#10 Setting Data::Dumper::Terse in code makes .ptkdb unreadable

open
nobody
None
5
2006-04-23
2006-04-23
Anonymous
No

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.

Discussion