I seem to remember that there is an exclusive lock on the NDBM file (fried-hash.dbm), you might wish to check that there is not another process using it. Failing that, perhaps you had a crash which left the file locked. Try removing the file before running the script.