Get user environment variable in perl

Hi,
I was able to get all my SYSTEM path variable paths through $ENV{'PATH'};
How can I get USER environment variable paths as well Perl's path variable?
nopopoAsked:
Who is Participating?
 
TintinConnect With a Mentor Commented:
You can access an environment variable with

$ENV{'environment-variable-name'}
0
 
Adam314Connect With a Mentor Commented:
The only difference between the SYSTEM and USER environment variables is the SYSTEM ones are set for everybody, and the USER ones are set by user.

The $ENV{variable} will give you both SYSTEM and USER environment variables.
0
 
TintinCommented:
recommend points split.
0
All Courses

From novice to tech pro — start learning today.