![]() |
Print all CGI environment vairables
At some point while writing a CGI script in Perl, many newbies have needed to print all the environment varibles in Perl, sometimes for debugging or for the sake of curiosity.
Well, here is the code to print all the CGI environment variables. Code: Perl
Output: Code:
DOCUMENT_ROOT = /share/htmlGATEWAY_INTERFACE = CGI/1.1 |
Re: Print all CGI environment vairables
This may be a good point to introduce the module Data::Dumper.
This module is one of the most useful modules for this kind of debug. Code: PERL
Note: I'm not working in the internet environment so some errors can appear on my code, but the idea is there ;) |
| All times are GMT +5.5. The time now is 03:32. |