dcsimg
Linux Today: Linux News On Internet Time.





More on LinuxToday


How to access shell environment variables in Perl script

Dec 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.

Complete Story

Related Stories: