Site Tools


perl

Perl

#! /usr/bin/perl
 
print "Content-type: text/plain\n\n";
 
print "This is output from simple Perl script \n";
print "\n";
 
foreach $var (sort(keys(%ENV))) {
    $val = $ENV{$var};
    $val =~ s|\n|\\n|g;
    $val =~ s|"|\\"|g;
    print "${var}=\"${val}\"\n";
}
perl.txt · Last modified: 2008/03/06 12:00 by 127.0.0.1