in reply to perl db file

you should be able to write it to a flat file, add a 1; at the end of it and then say require "filename"; at the top of your script. The 1; is needed so that require will return a true value.