Python Programming/Extending with Perl
Tools
General
Sister projects
In other projects
It is possible to call Perl functions and modules in Python. One way to do that is thePyPerl Module. It is not developed actively any more and for it to work in newer versions, one has to usethis version and apply the patches.
importperlperl.eval("use lib './' ")perl.require('Module::ModuleName')obj=perl.callm("new",'Module::ModuleName')obj['_attr1']=9obj['_attr2']=42obj.fxn1()
It is thus possible to handle Perl objects, change their attributes and calltheir methods.