in reply to with tied hash, 'each' gives key that doesn't 'exists'

I should mention, this is Perl 5.8.3 and DB_File 1.808
5.8.3 was released in January 2004. Perl is now up to 5.12.2, which comes with DB_File 1.818 (1.820 is out on CPAN). Could you check if the issue still occurs with a more recent Perl/DB_File? Make sure you've installed the newest version of Berkely DB itself as well. It might very well be that you've stumbled upon a bug that has been fixed sometime in the past 6 years.
  • Comment on Re: with tied hash, 'each' gives key that doesn't 'exists'

Replies are listed 'Best First'.
Re^2: with tied hash, 'each' gives key that doesn't 'exists'
by hbm (Hermit) on Sep 16, 2010 at 17:00 UTC

    I'm trying DB_File 1.82 now. I'm building the database anew, which will take a couple more hours to complete.

    Do you know, should I have been able to open with DB_File 1.82 a db that was created with 1.808? I assume not, as I got 'file exists' errors, even with O_RDWR|O_CREAT.

    Thanks!

    Update: It's quite clear, I can only open a db with the version of DB_File that created the db. (And that's fine.)