separator

Take a quiz or make one of your own

Here is a little program that will display the current values of all existing Environment variables, in alphabetical order.,


#!/usr/local/bin/perl

for(sort keys %ENV)
{print "<br>ENV{$_} eq $ENV{$_}"}

__END__

A very handy thing to put into your code -- the Environment variables are perhaps the essence of CGI programming.

separator

© www.thecgibin.com