in reply to Re^2: how can a perl script determine it's own PID while running
in thread how can a perl script determine it's own PID while running

You can use the unfortunately named kill function with a signal value of zero to see if a process is still alive.

my $pid = 1234; if( kill 0, $pid ) { # it's alive } else { # it's dead }