CGI environment variable : Environment Variables « CGI « Perl

CGI environment variable



use CGI;

$co = new CGI;    

    $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}"), 


print $co->end_html;


Related examples in the same category

1.Display CGI environment variables
2.Viewing Environment Variables in a CGI Script
3.CGI Environment Variables
4.Learn about the server for a CGI request
5.Program to display CGI environment variables.
7.Get and display the browser type by referencing HTTP_USER_AGENT
8.Server Environment Values
9.CGI request-related environment variables
10.CGI server-related environment variables
11.CGI client-related environment variables
13.Display all values in env
14.Determining the User Agent and Printing the Appropriate Result
15.CGI Environment Variables (Must Be Uppercase)
16.An example of using QUERY_STRING.