ENVIRONMENT VARIABLES.



Command Line Environment Variables.

#!/usr/bin/perl -w

use strict;

my $key;
my $value;

while(($key, $value) = each(%ENV))
{
print "$key => $value\n";
}


CGI Environment Variables.

#!/usr/local/bin/perl -w

use CGI;
use strict;

my $co;
my $key;

$co = new CGI;

print
$co->header,
$co->start_html('CGI Environment Variables Example'),
$co->center($co->h1('CGI Environment Variables Example'));

foreach $key (sort keys %ENV) {
print $co->b("$key=>$ENV{$key}"),
$co->br;
}

print $co->end_html;

Links.

Apache Environment Variables
http://httpd.apache.org/docs/env.html

CGI Environment Variables
http://hoohoo.ncsa.uiuc.edu/cgi/env.html
http://www.cgi101.com/class/ch3/text.html



www.cyberthinc.com