Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Problem with dbm hash?!!

by nagalenoj (Friar)
on May 06, 2009 at 13:33 UTC ( #762273=note: print w/ replies, xml ) Need Help??


in reply to Re: Problem with dbm hash?!!
in thread Problem with dbm hash?!!

Thanks for you reply. Actually, I have not used DB_File.

I use dbmopen(), dbmclose() like follows,

#!/usr/bin/perl use strict; use warnings; my %hash; # To open a dbmfile and associate with hash dbmopen(%hash, "nagalenoj", '0666') || die "Can't open database file!" +; $hash{'one'}="1"; $hash{'two'}="2"; $hash{'three'}="3"; #Retrieving values print $hash{'three'}; dbmclose %hash;


Comment on Re^2: Problem with dbm hash?!!
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://762273]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2014-08-20 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (110 votes), past polls