Web
>>
Development
>>
CGI
>>
Perl
>>
How to extract server environment using Perl
#! perl print "Content-type: text/html\n\n"; print qq(); foreach $var (sort(keys(%ENV))) { $val = $ENV{$var}; $val =~ s|\n|\n|g; $val =~ s|"|\"|g; print "${var}=\"${val}\"
\n"; } print qq();
Please enable JavaScript to view the
comments powered by Disqus.