Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Creating dbm files with perl

by sherab (Scribe)
on Apr 14, 2014 at 14:58 UTC ( [id://1082254]=note: print w/replies, xml ) Need Help??


in reply to Creating dbm files with perl

Making a set of files....
dbmopen(%pets, "C:/temp/petFile", 0644) || die "Cannot open petFile"; $pets{cat} = "Mao"; $pets{dog} = "Spot"; dbmclose(%pets);
Accessing DBM files....
dbmopen(%pets, "C:/temp/petFile", 0644) || die "Cannot open petFile"; while(($animal, $name) = each %pets) { print "the name of my $animal is $name\n"; } dbmclose(%pets);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-25 07:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found