Alexey Tourbin <[EMAIL PROTECTED]> writes:

> Greetings!
> 
> `make test' with the latest libwww-perl discovers this syntax error:
> 
> $ perl -c lib/HTTP/Request/Common.pm
> syntax error at lib/HTTP/Request/Common.pm line 92, near "else"
> $

I have no idea how you managed to get the file like that.  It
certainly does not look this way in my copy of the source or when I
look into the tarball I uploaded to CPAN.

Regards,
Gisle

> Here goes the fix:
> 
> --- lib/HTTP/Request/Common.pm~       2003-10-17 19:08:29 +0400
> +++ lib/HTTP/Request/Common.pm        2003-10-17 19:23:32 +0400
> @@ -89,9 +89,6 @@ sub POST
>      } else {
>       $req->header('Content-Length' => 0);
>      }
> -    else {
> -        $req->header('Content-Length' => 0);
> -    }
>      $req;
>  }

Reply via email to