in reply to Determining a Unix PID

The easiest way, if it is a program of yours, is to save the PID in a certain location, and delete the file in an END block.

But the way you say, "running with Perl" makes it sound as if it might be running with perl, or running some other way.

--
TTTATCGGTCGTTATATAGATGTTTGCA