Thank you for the follow up. The main cause of the sharing warning (as far as I can see) is my own scripts because I'm using Apache::Registry which means that my scripts run via a handler sub (there are no warnings when run off-line). I think I'll have to make the sub routines anonymous to get round it.