in reply to Re: Perl daemon exiting without warningin thread Perl daemon exiting without warning
If you're saying it's exiting immediately after that open, I don't believe you. Did you perhaps trace the code by printing to STDOUT?
I find it very unlikely that you have permission to create and write to /temp.txt (and that you intended to do so). Are you running as root?