How to get the "key" in ENV variable in perl script -
i new user of perl script. trying modify script required output data. however, not sure how make changes in below statements related environmental variables:
$cmiss_root=$env{cmiss_executable}; $cmgui_root=$env{cmgui_2_6_2}; $root=$env{root};
i think key between { } showed location of files. so, if change keys between { }, how can them? apology ignorant question bit confused how construct statement $env. thanks.
if wish find out environment variables there are
my @names_of_enviroment_vars = keys %env;
will tell you. if wish change value of environmental variable can set useing.
$env{root} = '/new/value/for/root/';
not setting environmental variables effect particular perl script , executable perl script launches.
Comments
Post a Comment