On Sun, Nov 24, 2002 at 02:56:56PM -0800, Randal L. Schwartz wrote:
> >>>>> "Gisle" == Gisle Aas <[EMAIL PROTECTED]> 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.
--
Reinier