Solved

Get user environment variable in perl

Posted on 2008-10-07
5
1,338 Views
Last Modified: 2012-08-14
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?
0
Comment
Question by:nopopo
  • 2
5 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 250 total points
ID: 22662857
You can access an environment variable with

$ENV{'environment-variable-name'}
0
 
LVL 39

Assisted Solution

by:Adam314
Adam314 earned 250 total points
ID: 22663591
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
 
LVL 48

Expert Comment

by:Tintin
ID: 24470165
recommend points split.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question