Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Does dbmopen() still work?

I have read that it was discarded in perl 5, but may be emulated. Certainly it wont be supported in the future. It appears that tie() should be used now, and it seems with tie you have create your own class and define every function your self.

I need the Hash <-> file functionality that dbmopen() had. Is this capablity still available and built into the tie() function or is writing my own class for tie() the only way? Is there something for array <-> file?.

My constraint for this project is that my access is restricted to the /home/<my account>/, cgi-bin, and html directory, I can't install anything that doesn't go in these.

It is possible that I may have access to mySQL, I'm checking, if so I may just go with the full database. So this may resolve itself in another direction, but I would still be curious about an answer for my question.

I have read the tie() document under the tutorial pages. If there is another good resource for tie() please let me know.

Thank you for any help
Lane

UPDATE: Sorry for being confusing, I dont have rights to install.

I belive the host supports mod perl but unsure, I will check on that as well.

Mostly I wanted to update an old cgi (perl but not mod perl) program that uses flat files. I'm trying to feel out some better options.


In reply to Is dbmopen() around in another form? by lvanhout

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-19 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found