Re: patch for LWP 5.05 to make it play with both 5.003 and 5.003_20 + overload patch
Gisle Aas (aas@bergen.sn.no)
Thu, 16 Jan 1997 18:41:18 +0100
In message <199701161732.MAA27993@monk.mps.ohio-state.edu>, Ilya Zakharevich writes:
> 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.
>
> What may have been changed is autoloading: is "eq" overloader
> autoloaded but not predeclared - by
> sub name;
> or `use subs'?
The "eq" is not overloaded at all. Only stringfy is.
But URI::URLs have an eq() method that is autoloaded. Does it have
anything to do with this?
Regards,
Gisle