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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |