Re: patch for LWP 5.05 to make it play with both 5.003 and 5.003_20 + overload patch

Ilya Zakharevich (ilya@math.ohio-state.edu)
Sun, 19 Jan 1997 16:03:46 -0500 (EST)


Gisle Aas writes:
> With perl5.003_21 I still get one failure inside the uri.t test script.  
> 
>   Operation `eq': no method found,
>           left argument in overloaded package URI::URL::http,
>           right argument has no overloaded magic at uri.t line 846.
> 
> The line that fails look like this:
> 
>     die 'URL not canonicalised' unless $result eq 'http://host/dir2/file';
> 
> $result is a reference to a URI::URL::http object (which has stringify
> overloaded and fallback => 1).  I have not been able to reproduce it
> in a smaller test case.  I'll investigate further.

I spent a lot of time investigating this, and even found one
pessimization in the current code (patch will follow soon). However,
after going over the whole process in debugger, I found out that this
is exactly:

	Doctor it hurts when I do this!

As the error message indicates, there is no method for operation
`eq'. Thus you cannot apply `eq' for the data (but to fix it it is
enough to define `cmp').

Ilya