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":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.