in reply to Re^2: Proper and acceptable use of backticks in a modern Perl script
in thread Proper and acceptable use of backticks in a modern Perl script
$ENV{'PATH'} = '/var/www/';
All relevant executables are in /var/www? I HIGHLY doubt that. A safe value for $ENV{'PATH'} is generally /bin:/usr/bin (which is also the default path set by the operating system, i.e. kernel and/or init). If you want to avoid any executable to be run without an giving its absolute path, set $ENV{'PATH'} to a non-existing or empty directory.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Proper and acceptable use of backticks in a modern Perl script
by Polyglot (Chaplain) on Sep 18, 2023 at 23:29 UTC | |
by fullermd (Vicar) on Sep 19, 2023 at 18:41 UTC | |
by Polyglot (Chaplain) on Sep 21, 2023 at 04:23 UTC |