[Kamailio-Devel] Perl module renaming
Alex Balashov
abalashov at evaristesys.com
Wed Aug 6 11:25:36 CEST 2008
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.
--
Alex Balashov
Evariste Systems
Web : http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599
More information about the Devel
mailing list