You are viewing the version of this documentation from Perl 5.6.2. 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.)