In perlvar, see $0 and $$.
After Compline,Zaxo
In reply to Re: Getting PID and Process Name by Zaxo in thread Getting PID and Process Name by Anonymous Monk