in reply to Re^4: Proper and acceptable use of backticks in a modern Perl script
in thread Proper and acceptable use of backticks in a modern Perl script
The script is not using this $ENV{PATH} variable for anything...
Are you sure it's not using it to run sh? Remember, backticks aren't "execute this program", they're "pass this string to sh"; that's why you can just cram all the args together in one string, expect $PATH (the $PATH the shell sees, not perl's var) to affect things, expand shell vars and wildcards, etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Proper and acceptable use of backticks in a modern Perl script
by Polyglot (Chaplain) on Sep 21, 2023 at 04:23 UTC |