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

Cheers,
KM


In reply to Re: diplaying the entire $ENV set by KM
in thread diplaying the entire $ENV set by Poblachtach32

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":