Help for this page

Select Code to Download


  1. or download this
    use CGI;
    
    ...
    print $req->header();
    print "<H1>Hello ";
    print $req->param('name'), "</H1>";
    
  2. or download this
    5.      $value =~ tr/+/ /;
    
  3. or download this
    6.      $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex
    ($1))/eg;
    
  4. or download this
    7.      $value =~ s/\s/ /g;
    
  5. or download this
    8.      $value =~ s/<([^>]|\n)*>//g;
    
  6. or download this
    9.      $value =~ s/<//g;
    
  7. or download this
    10.     $value =~ s/>//g;
    
  8. or download this
    11.     $FORM{$name} = $value;
    
  9. 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