- or download this
use CGI;
...
print $req->header();
print "<H1>Hello ";
print $req->param('name'), "</H1>";
- or download this
5. $value =~ tr/+/ /;
- or download this
6. $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex
($1))/eg;
- or download this
7. $value =~ s/\s/ /g;
- or download this
8. $value =~ s/<([^>]|\n)*>//g;
- or download this
9. $value =~ s/<//g;
- or download this
10. $value =~ s/>//g;
- or download this
11. $FORM{$name} = $value;
- or download this
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The
$d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider
($c = $d->accept())->get_request(); $c->send_response( new #in the
HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web