I'm not sure how to read "in English" the %$. Is it: "the hash who's scalar pointer is?"
More or less, yes, except in Perl we say "reference", not pointer. It's not a pointer, which would be nothing other than a raw address; a "reference", OTOH, is a smart, well, "object", with built-in cleverness.

So I'd call it "the hash referenced by ...".

I didn't realize that dbmopen was considered obsolete. Maybe I've got an old PERL book?
What book is that?!? dbmopen has been considered obsolete since the beginning of Perl5, now almost 10 years ago. You must be looking into a perl4 book... :) BTW the first line in the docs for dbmopen explicitely say it's deprecated: "has been superseded".

tie offers a general mechanism to do hidden stuff behind the masquerade of a simple variable, while dbmopen does just one thing. Why would we need two entirely different interfaces for doing very similar things? So, as tie is far more flexible than dbmopen, it has been chosen as the preferred route.


In reply to Re: Re: Re: Using a hash pointer with dbmopen by bart
in thread Using a hash pointer with dbmopen by K2KO

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.