in reply to Re^7: Embed perl problem
in thread Embed perl problem

getppid might help you there.