perlinfo.pl script:
#! /usr/bin/perl- script to simulate phpinfo() command
use strict;
use warnings;
use Config;
use CGI;
use Data::Dumper;
my $q = CGI->new;
print $q->header(‘text/plain’);
print “Perl Version: $^V” ;
print “nnArchitecture: $Config{archname}” ;
print “nn” ;
foreach my $key (sort keys %ENV) {
print “$key = $ENV{$key}n” ;
}