Opening an MLDBM database is similar to opening a regular DBM database: : DBM « Database « Perl






Opening an MLDBM database is similar to opening a regular DBM database:

   
#!/usr/bin/perl
use warnings;
use strict;
use MLDBM;
use POSIX; #for O_CREAT and O_RDWR symbols
use strict;
my %mldbm;
my $mldb_file="mlanydbmdemo.dbm";
tie %mldbm, 'MLDBM', $mldb_file, O_CREAT|O_RDWR, 0644;

   
    
    
  








Related examples in the same category

1.Creating and Assigning Data to a DBM File
2.Open DBM up for read write access
3.Reads DBM file, printing entries with tie and untie function
4.Store hashes in a DBM file:
5.Using DBM databases with reports
6.Write out data into a DBM database
7.Copying from One DBM Format to Another