you can write the follwing messages and get to know more from the LOG file.
- Create a log file when the program Starts ( PID of the parent Process )
- Forked PID and the corresponding PPID
- ended PID
- opened file names and log filenames
Through the above you can come to know what is happening inside your perl snippet.
hmmm ....let me think what did I said