Perl Special Variables (defaults)
Special Variables (defaults)
Some variables have a predefined and special meaning to Perl. A few of the most commonly used ones are listed below
$_ | The default input and pattern-searching space |
$0 | Program name |
$$ | Current process ID |
$! | Current value of errno |
@ARGV | Array containing command-line arguments for the script |
@INC | The array containing the list of places to look for Perl scripts to be evaluated by the do, require, or use constructs |
%ENV | The hash containing the current environment |
%SIG | The hash used to set signal handlers for various signals |