Reading Linux Environmental Variables in perl

Posted: July 9, 2013 in Linux, Programming
Tags:

To read the environmental variable and store in shell use following syntax

$variable_name = $ENV{'env_var_name'}

Example :

$java = $ENV{'JAVA_HOME'}
Advertisements

Comments are closed.