use DB_File; tie %hash, "DB_File", $filename or die "NO DIE\n"; %hash{key}='value'; untie %hash;