CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Win32 Programming Help: Re: [localfilmmaker] GetComputerName: Edit Log



Paul
Enthusiast

Feb 11, 2002, 8:52 AM


Views: 9468
Re: [localfilmmaker] GetComputerName


Code
#!/usr/bin/perl -w  
use strict;
print "Content-type: text/html\n\n";
print "<h1>ENV Vars:</h1>\n";
foreach (sort keys %ENV) {
print "$_ = $ENV{$_}<br>\n";
}


How about:

print join("<BR>", map { "$_ = $ENV{$_}" } keys %ENV);

Cool


(This post was edited by WiredON.net on Feb 11, 2002, 8:53 AM)


Edit Log:
Post edited by Paul (Enthusiast) on Feb 11, 2002, 8:53 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives