Hi tilly!
Thnx for the post, but it is not running under mod_perl - I have actualy found the cause of the problem, after an intensive search through the cookbook. I found that when a perl script is instantiated using exec (or similar) DESTROY will never be called upon when the program exits.
before the script exits.
This seems to be the only way to have it run the DESTROY routine...
Thanks for your quite usefull post anyway (I can very much use this for another project)...