in reply to DB_File problem

I get the error type parameter is not a reference, because $DB_TREE should be $DB_BTREE.

This should be visible via STDERR. You should find this messages in the log of your syslog, probably /var/log/messages (or /logs/stderr in your case, provided /logs exists and is writeable)

And no, neither perl nor DB_File will prepend underscores to a file name by themselves.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^2: DB_File problem
by Woulfe (Initiate) on Jul 07, 2006 at 16:09 UTC

    My mistake. The DB_TREE bit was a typo. In trying to make the sample case boil down to the simplest version, I goofed on cut and paste. I have $DB_BTREE after all.

    I am trying to reproduce the "__foo.db" bit but so far I am not able. This is the reason I asked here. If I was able to reproduce it and just remove the "__" file, I would be okay with that.

    The logs files do exist and other information is being placed in them.

    Thanks anyway.

      So, typo fixed in your posted script, it fails in the way described? Mind to post what's in the logs (if relevant to the problem)?