Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
      print "summing $arg1 en $arg2\n";
      return $arg1 + $arg2;
    }
    
  2. or download this
    use strict;
    use Socket;
    ...
      print $line;
    }
    close SOCKET or die "close: $!";
    
  3. or download this
    use LWP::UserAgent;
    my $ua = new LWP::UserAgent;
    ...
    my $response = $ua->post('http://localhost:8999', $content) ;
    
    print $response->content;
    
  4. or download this
    <title>403 Forbidden</title>
    <h1>403 Forbidden</h1>
    
  5. or download this
    #!/usr/bin/perl -w
    
    ...
    my $response = $ua->request($req);
    
    print $response->content;