in reply to DBM::Deep Problem

Have a look at the "CAVEATS / ISSUES / BUGS" section in the documentation:

<quote>
Unfortunately, autovivification doesn't always work. This appears to be a bug in Perl's tie() system, as Jakob Schmidt encountered the very same issue with his DWH_FIle module (see http://search.cpan.org/search?module=DWH_File), and it is also mentioned in the BUGS section for the MLDBM module (see http://search.cpan.org/search?module=MLDBM). Basically, your milage may vary when issuing statements like this
</quote>

Replies are listed 'Best First'.
Re^2: DBM::Deep Problem
by travisbickle34 (Beadle) on May 18, 2005 at 10:29 UTC
    Yeah, I had read that.
    The author seemed to believe it was a rare problem though, and the autovivification I was attempting wasn't that complex.
    Also, I didn't want to believe it wouldn't work because I desperately needed it to :-)
    It's working a treat now though.
    Cheers again guys (and gals)

      IMO the author is being highly optimistic in his description. This problem is well known and wont go away any time soon.

      ---
      $world=~s/war/peace/g

        Seems like a patch to make a pragma that makes autovivification a fatal error would be rather easy to write and would be useful here and for other uses.

        - tye        

        In that case I have learned a milestone lesson in my perl career.

        Don't trust people who know more than me ;-)

      I tried using DBM::Deep for a full text search engine. The autovivification problem popped up quite a bit, so I gave up. Still use DBM::Deep for other applications, though. It's pretty nice.