|
|
Perl Environment - Perl
|
Views : 87
|
|
Tagged in : Perl
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
Perl Environment
HOME
Used if chdir has no argument.
LOGDIR
Used if chdir has no argument and `HOME' is not set.
PATH
Used im executing subprocesses, and in finding the script if `-S' is used.
PERLLIB
A colon-separated list of directories in which to look for Perl library files before looking in the standard library and the current directory.
PERLDB
The command used to get the debugger code. If unset, uses:
require 'perldb.pl'
Apart from these, perl uses no other environment variables, except to make them available to the script being executed, and to child processes. However, scripts running setuid would do well to execute the following lines before doing anything else, just to keep people honest:
$ENV{'PATH'} = '/bin:/usr/bin'; # or whatever you need
$ENV{'SHELL'} = '/bin/sh' if $ENV{'SHELL'} ne '';
$ENV{'IFS'} = '' if $ENV{'IFS'} ne '';
|
|
By Geethalakshmi, On - 2010-09-17 |
|
|
|