Perl: Data Persistence
GDBM_File
GDBM_File allows access to the gdbm library. The size in 'gdbm' is not restricted like 'dbm' or 'ndbm'. Simple usage example:
use GDBM_File ;
  tie %hash, 'GDBM_File', $filename, GDBM_WRCREAT, 0640;
  # Use the %hash array.
  untie %hash ;
    
ReadWrite constants
GDBM_READERreader
GDBM_WRITERwriter
GDBM_WRCREATwriter - if database does not exist create new one
GDBM_NEWDBwriter - create new database regardless if one exists

goto [Course index] [Section index] [Previous] [Next]
Dr Jaime Prilusky, course@weizmann.ac.il.