* Robin Berjon wrote:
>On Monday 22 October 2001 01:25, Bjoern Hoehrmann wrote:
>> use CSS::SAC::LexicalUnit ':constants'; imports vital constants into
>> the current namespace, so the URI constant. But I want to use the URI
>> module. Is there anything I can do to have my
>>
>> my $base = URI->new(...);
>>
>> excluding using fully qualified CSS::SAC::LexicalUnit::URI etc.pp.? If
>> not (I don't think so, though), 'URI' is probably a bad name for the
>> constant.
>
>One solution is to rename all constants to be prefixed with SAC_, make
>*those* importable with :constants, and for a while the unprefixed ones
>importable as well with :old_constants. This might be the cleanest solution.
>
>Note that you can also:
>
>*Your::Package::SAC_URI = \&CSS::SAC::LexicalUnit::URI;
>
>to get an alias usable locally as SAC_URI.
Yes, and it is also possible to create an URI object first and then
import those symbols but I think your solution is probably the best
one. Would you mind patching it into CVS?
regards,
--
Björn Höhrmann { mailto:bj...@ho... } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
|