#!c:/perl/bin/perl -w use strict; use Data::Dumper; open my $ENV_DUMP, '>', 'c:/iis_env.txt' or die $!; print {$ENV_DUMP} Dumper(\%ENV); close $ENV_DUMP; print "Content-Type: text/plain\n\nSuccess!";