$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
In reply to Re^3: Proper and acceptable use of backticks in a modern Perl script
by afoken
in thread Proper and acceptable use of backticks in a modern Perl script
by Polyglot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |