Can anyone tell me how to access enviroment variables? I am new to this perl stuff and was wanting to access an env var that told me where a person came from (what url).
For extra points, can you also tell me where I can find a definitive list of ALL environment variables that can be accessed with perl scripting?
You can access environment variables with $ENV{}-statement. The URL which the user came from can be found in $ENV{'REFERRER_URL'} if the browser sends it.
0
Question has a verified solution.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
foreach $key (sort keys %ENV) {
print "$key=ENV{$key}\n";
}