Hello monks, I asked yet this in chat and i'm almost convinced there is no answer but..
Perl has some knoweledge about who called him? It must be some shell in all Linux flavours (bash, csh, ksh..) or in win32 the stupid cmd.exe, or maybe another modified shell-like program (Console2, powershell.. ).
Once Perl has started I can easily make a system call to get description of the PID using
but i'd like to investigate the parent of such PID.
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.