Sdbm-File

SDBM_File(3p) Perl Programmers Reference Guide SDBM_File(3p)

Sdbm-File

SDBM_File(3p) Perl Programmers Reference Guide SDBM_File(3p) # SDBM_File(3p) Perl Programmers Reference Guide SDBM_File(3p) NNAAMMEE # SDBM_File - Tied access to sdbm files SSYYNNOOPPSSIISS # use Fcntl; # For O_RDWR, O_CREAT, etc. use SDBM_File; tie(%h, 'SDBM_File', 'filename', O_RDWR|O_CREAT, 0666) or die "Couldn't tie SDBM file 'filename': $!; aborting"; # Now read and change the hash $h{newkey} = newvalue; print $h{oldkey}; ... untie %h; DDEESSCCRRIIPPTTIIOONN # "SDBM_File" establishes a connection between a Perl hash variable and a file in SDBM_File format. ...