Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Just another Perl shrine
 
PerlMonks  

dbmopen question

by chorg (Monk)
on Mar 09, 2001 at 17:22 UTC ( [id://63292]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

chorg has asked for the wisdom of the Perl Monks concerning the following question:

I know that it's deprecated - but I did not write this code.

I am on a solaris box and there is some code using dbmopen, with no locking. I want to use tie instead. How can I find out which kind of dbm file I am working with?
_______________________________________________
"Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."

Replies are listed 'Best First'.
Re: dbmopen question
by merlyn (Sage) on Mar 09, 2001 at 17:32 UTC
    After the dbmopen, you can call ref tied %YOUR_DBM to get the class of the hidden object.

    And contrary to some people's opinions, dbmopen is a fine function to give simple interface to persistent storage, and will continue to be supported throughout the lifetime of Perl5.

    -- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://63292]
Approved by root
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.