use Data::Dumper; local $Data::Dumper::Sortkeys = 1; my $dump = Dumper \%ENV; for ($dump) { s/&/&/g; s/</g; s/>/>/g; } print "
$dump