where did that person come from?

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?

ta
john1998Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
greConnect With a Mentor Commented:
this will type out your ENV variables and their values:

foreach $key (sort keys %ENV) {
     print "$key=ENV{$key}\n";
}
0
 
feenixCommented:
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.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.