[EMAIL PROTECTED] (Randal L. Schwartz) writes: > >>>>> "Bill" == Bill Moseley <[EMAIL PROTECTED]> writes: > > Bill> At 02:22 PM 10/01/01 -0700, Randal L. Schwartz wrote: > >> Heh. I've asked for that a few times. See the bottom of a few > >> of my columns (google for site:stonehenge.com "mailto::host"). > >> Linux Magazine column 16 for example contains: > >> > >> sub URI::mailto::host { ""; } # workaround bug in LWP > > Bill> Do you think UNIVERSAL is a better choice (or worse)? That's a bit too > Bill> global for my liking, but otherwise I need to think of all the schemes that > Bill> I might encounter. Right? Would overriding URI's AUTOLOAD be a better > Bill> approach? > > Bill> sub UNIVERSAL::host { '' }; > Bill> sub UNIVERSAL::port { '' }; > Bill> sub UNIVERSAL::host_port { '' }; > > It would suffice to put them into URI::_generic, since all > other schemes seem to inherit from there.
They don't; check mailto:, data: But they all inherit from URI:: Regards, Gisle