Subject: | "add element" problems |
"add element" seem to have problems. I tried the "add element" function with MLDBM files and normal hashes and both caused problems. The sample one-liner are:
perl -MTk -MTk::ObjEditor -e 'tkinit->ObjEditor(caller => \%db, direct => 1)->pack;MainLoop;'
and
perl -MFcntl -MMLDBM=DB_File,Storable -MTk -MTk::ObjEditor -e 'tie %db, "MLDBM", "/tmp/new.mldbm", O_RDWR|O_CREAT, 0666 or die $!; tkinit->ObjEditor(caller => \%db, direct => 1)->pack;MainLoop;'
Adding an element in the first case causes the element to be duplicated. After a reload it looks right. In the MLDBM case the result seems to be even stranger showing some elements of the MLDBM internals. Also, after a reload things look right again.
Regards,
Slaven