You are viewing the version of this documentation from Perl 5.8.0. View the latest version
$PROCESS_ID
$PID
$$

The process number of the Perl running this script. You should consider this variable read-only, although it will be altered across fork() calls. (Mnemonic: same as shells.)