On Saturday 06 May 2006 02:19, Alan_C wrote:
> Hi,
>
> [EMAIL PROTECTED]:~$ perldoc -f dbmopen
>
> dbmopen HASH,DBNAME,MASK
>                [This function has been largely superseded by the "tie"
> function.]
> --------------------
>
> But it does not say "completely superseded"

Even more directly to the point, I was seeking regards to dbmopen up above in 
that snippet it's therein expressed as "has been largely superseded by the 
tie".  *Why* in the doc is it so expressed?

Ok, I perldoc'ed some more and Googled and searched a book.

And, it now appears to me that it's all about what I need.  Simply, the tie 
offers greater flexibility of database formats whereas the dbmopen uses only 
the particular DBM that perl was compiled to.

So, if I do not need those other database formats that tie can use then this 
appears to be a case for me where I just merely use dbmopen 

Please correct me if I have displayed any incorrectness in my understanding of 
this issue.

http://perldoc.perl.org/perltie.html

The next quote is taken from chapter 12. Databases and Perl from the book 
"Perl In A Nutshell"

<quote>
To associate a DBM database with a DBM array, you can use either the dbmopen 
function or the tie function with a DBM-style module. (dbmopen is actually 
just a front-end to tie.) For example, with dbmopen:

    dbmopen(%ARRAYNAME, "dbmfilename", $mode);

or (using tie with the DB_File module):

    use DB_File;
    tie(%ARRAYNAME, "DB_File", "dbmfilename");
</quote>

http://perldoc.perl.org/DB_File.html

http://www.google.com/search?q=perl+dbmopen+tie&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official

-- 
Alan.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to