in reply to Getting PID and Process Name
$$ is the current process id and $0 is the name of the script.open PID, '>', "$0.$$" or die "can't write pid file: $!";
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|