NDBM_File

NDBM_File

NAME

NDBM_File - Tied access to ndbm files

SYNOPSIS

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;

DESCRIPTION

NDBM_File establishes a connection between a Perl hash variable and a file