in reply to diplaying the entire $ENV set

print qq{$_ => $ENV{$_}\n} for sort keys %ENV;
Make the \n a <br> if used in CGI.

Cheers,
KM