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"
Thus I seek a guide for when for me to use either of the two.
---------------------
I've been (successfully) run Mr. Randal Schwartz's
http://www.stonehenge.com/merlyn/WebTechniques/col45.html
And, as (just a learning thing for me) an experiment I first got DB_File
working this is on Slackware 10.2.
Then, onto the code from Mr. Schwartz's listing, I added: use DB_File;
And then, as per line number 45 of that listing, I substituted line 45 with:
tie my %SAW, "DB_File", "$localname" or die "Cannot open file $localname: $!
\n";
And it works! (I'm somewhat amazed because I can hack which sometimes results
with that it works).
tie evidently ties a file to a hash. And dbmopen evidently does similarly.
Thanks.
--
Alan.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>