Help for this page

Select Code to Download


  1. or download this
    sub connectToHost {
    ...
    ...
        foreach my $line (@request){
            print $UrlSock $line;
        }
    
  2. or download this
    Can't use an undefined value as a symbol reference at ...
    
  3. or download this
        $hash->{url} = ($firstline =~ m|(http://\S+)|)[0];
        if($hash->{url}=~/\?(.+)/s){
    ...
            }
    ...
        $hash->{url}=~s/\?.*//s;
    
  4. or download this
        if($firstline =~ m!(GET|POST|HEAD) http://([^/:]+):?(\d*)!){
            $method=$1;
    ...
        $hash->{method}=$method;
    ...
        if ($method=~/^POST$/is && $len) {
    
  5. or download this
        #Get Reply Header
        my %Reply = ();
    ...
            binmode $UrlSock;
            binmode $Client;
        }
    
  6. or download this
    sub worker {
        my $tid = threads->tid();
        local $SIG{__DIE__} = sub{ $ThreadStatus{$tid} = 'died'; };
    ...
    
  7. or download this
    #!/usr/bin/perl
    use strict;
    ...
        $str=~s/[\r\n\s\t]+$//s;
        return $str;
    }