develooper Front page | perl.libwww | Postings from March 2003

Re: URI Bug?

Thread Previous | Thread Next
Reinier Post
March 4, 2003 04:40
Re: URI Bug?
Message ID:
On Sun, Nov 24, 2002 at 02:56:56PM -0800, Randal L. Schwartz wrote:
> >>>>> "Gisle" == Gisle Aas <> writes:
> >> I'd be happy to learn of a better way to do this, and I'm sure my list
> >> is not complete anyway.
> Gisle> I suggest either:
> Gisle>     $url->host(ip_address($url->host)) if $url->can("host");
> Why bother with "can"?  Don't they all inherit from a common base class?
> Just put a "host" in the common base class that returns itself.

Shouldn't it rather return undef?

In any case I'd love to see this fixed.  The present behaviour is counterintuitive.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About