411 REFERENCE · Wikibooks
Python Programming/Extending with Perl
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Extending with ctypes Extending with R
It is possible to call Perl functions and modules in Python. One way to do that is the PyPerl Module. It is not developed actively any more and for it to work in newer versions, one has to use this version and apply the patches.
import perl
perl.eval( "use lib './' ")
perl.require( 'Module::ModuleName' )
obj = perl.callm("new", 'Module::ModuleName' )
obj[ '_attr1' ] = 9
obj[ '_attr2' ] = 42
obj.fxn1()
It is thus possible to handle Perl objects, change their attributes and call
their methods.
See also
http://wiki.python.org/moin/IntegratingPythonWithOtherLanguages#Perl
Extending with ctypes Extending with R