Oliver Lehmann: ENV-variablen

Beitrag lesen

Hi Wowbagger,

probiere es doch mal mit folgendem Script.

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<html><head><title>PathFinder</title></head><body><center><table border="0" width="400">\n";
$date = localtime(time);
print "<tr><td width="200" bgcolor="#0066cb"><font color="#FFCC00"><center><b>Local Time</b></center></font></td><td width="200" bgcolor="#003366"><font color="#FFFFFF"><center>$date</center></td></tr></font>\n";
while (($key, $val) = each %ENV) {
print "<tr><td width="200" bgcolor="#0066cb"><font color="#FFCC00"><center><b>$key</b></center></font></td><td width="200" bgcolor="#003366"><font color="#FFFFFF"><center>$val</center></td></tr></font>\n";
}
print "</table></center></body></html>\n"

Bei meinem ISP funzt es, und er nuzt version 5.005_03 built for i586-linux

<www.pofo.de/cgi-bin/pathfinder.pl>

MfG Olli *g*