>>>>> "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.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to