How to access shell environment variables in Perl scriptDec 08, 2016, 19:00 (0 Talkback[s])
(Other stories by Xmodulo)
In some cases you may want to access shell environment variables (e.g., $PATH, $PWD, $HOME, $LANG) in your Perl script. While you can pass any needed variables to your Perl script via @ARGV argument array, this is actually not needed since Perl provides a way to access all available environment variables. Let's find out how to access shell environment variables in Perl script.
0 Talkback[s] (click to add your comment)