> Here's my beefed-up cgi-bin/printenv again.
Sorry, but it needs more work. A few things need to be done.
1. All the comments should be at the bottom of the file, prefaced
by a single __END__ on a line by its own (saves parser time)
2. Many of the print statements can be condensed into a single print.
There is no sense teaching CGI authors bad habits.
3. The script doesn't check the HTTP method first.
4. bogus bits
>print "<link rev=\"made\" href=\"mailto:wsanchez\@apple.com\">"; # Author
5. The original
while (($key, $val) = each %ENV) {
is considerably more efficient perl than
>foreach $key (keys %ENV)
> {
> $var = $key;
> $val = $ENV{$key};
....Roy
|