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