#!/usr/bin/perl ## Enviroment Variables Plus v1.0 Released: 9-1-00 ## by NESGamepro http://www.wtv-zone.com/nesgamepro # You may have to change the path above to #!/usr/local/bin/perl if the # script is not working. # Name this file anything.pl or anything.cgi and change permissions # (CHMOD) the file to 755. # By using this script you agree that NESGamepro is not responsible # for any damages caused by it, either directly or indirectly. # Sole responsibility is placed on the owner of this copy. # There is no need to edit below this line use File::Find; $plocation =`whereis perl`; @perlloc = split(" ",$plocation); $sendmail =`whereis sendmail`; @mailloc = split(" ",$sendmail); $dateprog =`whereis date`; @dateloc = split(" ",$dateprog); print "Content-type: text/html\n\n"; ## ENV Vars print "
| Environment Variables | ||
| $key | $value | Debug Flags: | $^D |
| Debugger Flag: | $^P | |
| Warning Switch Value: | $^W | |
| Perl Executable: | $^X | |
| Perl Process Number: | $$ | |
| Perl being Executed: | $0 | |
| Perl Version: | $] | |
| PERL compile version OS: | $^O | |
| Script Start Time: | $^T | |
| Real UID: | $< | |
| Effective UID: | $> | |
| Real GID: (If not blank, your server supports membership in multiple groups simultaneously) | $( | |
| Effective GID: (If not blank, your server that supports membership in multiple groups simultaneously) | $) | |
"; ## Server Program Paths print "
| Server Program Paths; | |
| Location of Perl: | "; foreach $loc(@perlloc) { print "$loc \n";} print " |
| Location of Sendmail: | ";
foreach $loc(@mailloc) { print "$loc \n";} print " |
| Location of Date: | ";
foreach $loc(@dateloc) { print "$loc \n";} print " |
| Directory locations searched for perl executables: | ";
foreach $item(@INC) { print "$item \n";} print " |
"; ## Show Modules print "
| Installed Modules | |||||
|
|
| |||