- or download this
a=shift;$a=~s/\\//g;$a=glob($a);$_=`cat $a`;print"Content-type: text/h
+tml\n\n"
;while(/<!--#exec cgi="([^"]*)"-->/){$a=`$1`;$a=~s/\n/<br>\n/g;
s/<!--#exec cgi="([^"]*)"-->/$a/}print;
- or download this
my $a= shift @ARGV;
$a =~ s#\\#/#g;
$a= glob($a);
$_= `cat $a`;
- or download this
$_= do { local($/); <> }; - or download this
print "Content-type: text/html\n\n";
while( /<!--#exec cgi="([^"]*)"-->/ ) {
my $a= `$1`;
...
s/<!--#exec cgi="([^"]*)"-->/$a/
}
print;
- or download this
while( $_ =~ /<!--#exec cgi="([^"]*)"-->/ ) {
my $a= `$1`;
$a =~ s/\n/<br>\n/g;
$_ =~ s/<!--#exec cgi="([^"]*)"-->/$a/;
}
print $_;