use Fcntl; use ODBM_File; tie(%hash, ODBM_File, 'Op.dbmx', O_RDWR|O_CREAT, 0644); # read/writes of %hash are now read/writes of the file, Op.dmx untie %hash;
See Perl's built-in tie function. Also see under DB_File in this chapter for a description of a closely related module.