I'm currently on the way, so I don't have all data available. However, I had a peek at the logs and I read something about $cgi (and maybe others) that it will not stay shared or so. I think its the thing described here: http://www.webreference.com/programming/perl/subroutines/2.html (at the end of "Private Variables and Nested Subroutines"). I'll have a look at it tomorrow. Thank you for your help so far.