http://qs321.pair.com?node_id=1174762


in reply to Re^2: Detecting stale pid file under *nix
in thread Detecting stale pid file under *nix

Then check command line. Even if it is perl, the command line still contains name of the script and parameters.