Yes, that worked perfectly. I'm not sure how to read "in English" the %$. Is it: "the hash who's scalar pointer is?" So, would @$ be: The array who's scalar pointer is..."
I need to do a lot of study on referencing and de-referencing. Its pretty confusing to me. I'm printing out those pages of the PERLDOC right now. Good bathroom reading.
I didn't realize that dbmopen was considered obsolete. Maybe I've got an old PERL book? I'll move to TIE tonight.
Lots to learn, so little time....
Thanks!
| [reply] [d/l] [select] |
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.
| [reply] |