Perl uses the following environment variables:
- HOME
-
Used if chdir has no argument.
- LOGDIR
-
Used if chdir has no argument and HOME is not set.
- PATH
-
Used in executing subprocesses, and in finding the Perl script if -S
is used.
- PERL5LIB
-
A colon-separated list of directories to look in for Perl library files
before looking in the standard library and the current directory.
- PERL5DB
-
The command to get the debugger code. Defaults to
BEGIN { require 'perl5db.pl' }.
- PERLLIB
-
Used instead of PERL5LIB if the latter is not defined.