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?
In reply to Re^3: Perl daemon exiting without warning
by ikegami
in thread Perl daemon exiting without warning
by sktemkar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |