use Fcntl; use NDBM_File; tie(%hash, NDBM_File, 'Op.dbmx', O_RDWR|O_CREAT, 0644); # read/writes of %hash are now read/writes of the file, Op.dmx untie %hash;