[Kamailio-Devel] Perl module renaming

Klaus Darilion klaus.mailinglists at pernau.at
Wed Aug 6 11:35:51 CEST 2008



Alex Balashov schrieb:
> Klaus Darilion wrote:
>>
>> Bastian Friedrich schrieb:
>>> Klaus,
>>>
>>> On Wednesday 06 August 2008, Klaus Darilion wrote:
>>>> Hi Bastian!
>>>>
>>>> Could you please rename the perl modules from OpenSER::.... to 
>>>> Kamailio::
>>>>
>>>> I do not have that much experience with perl ...
>>> these renamings will break running installations out there; Perl 
>>> scripts include libraries with lines such as
>>> use OpenSER::Message;
>>
>> Ok. Is this something that can be solved with symlinks?
> 
> Not entirely;  there are various namespace bindings within the code.
> 
> In a purely Perl module, something like this typically appears in the 
> .pm package:
> 
>    package OpenSER::Miracles::PerpetualMotion;
> 
> This, in tandem with the directory structure 
> (OpenSER/Miracles/PerpetualMotion.pm) is what allows the module to be 
> "used" elsewhere:
> 
>    use OpenSER::Miracles::PerpetualMotion;
> 
> In the case of XS modules (C code with Perl API hooks), there are bound 
> to be similar constructs, although since I don't do XS I don't know what 
> they are.

Ok. Thank's for the info. Thus it wont be changed for 1.4

regards
klaus



More information about the Devel mailing list