in reply to Re^2: Tie Failed for berkeley DB file
in thread Tie Failed for berkeley DB file

There is nothing in the code you showed that prints anything. There is only a die. Does the code not die at that point? If not, what code prints the empty string? Do you mean you get an empty string value when you look up a key? Do all lookups produce the same result regardless of key? Was the DBM file generated by the same setup that is failing to read it or did you copy it from elsewhere?

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^4: Tie Failed for berkeley DB file
by vennirajan (Friar) on Jan 13, 2006 at 06:04 UTC
    What i meant was, the error variable " $! " prints nothing , also the code exits from that "die" point. I have copied the file from other host ( where it is working ). But , the other files also i have copied from there only. They are working fine. Only this file gives issue ?!?!?!?

    Regards,
    S.Venni Rajan.
    "A Flair For Excellence."
                    -- BK Systems.

      That sounds decidedly odd. My guess is that the DBM file is somehow corrupt and DB_File doesn’t even manage to coherently complain. I can only defer to what PodMaster said then: get the BerkleyDB utilities and check the DBM file’s integrity.

      Makeshifts last the longest.