Posted on 2007-08-07 17:46:29-07 by maskman
Query about using the pyperl module
Hi I need to write a python wrapper over a perl script but i am stuck! I have a perl script for example : test.pl. Now I want to create a python wrapper over it. So that using python I can execute test.pl. Please let me know how to start. Do I have to change this test.pl to test.pm & put this test.pm file where all the perl modules are present? How do I call test.pl & all its member functions in my python script. Also l'd appreciate if you could provide some link to a good tutorial of the same. Please help Thanks & Regards
Direct Responses: 5878 | Write a response
Posted on 2007-08-08 00:39:38-07 by maskman in response to 5876
Re: Query about using the pyperl module
Hi I'v found my answer to execute the perl script. We have to create a .py file similar to .pl file & then in that .py file we have to call all the packages present in the .pl file. something like this/; import perl pack = perl.require("Package_name") module=perl.callm("module_name") and so on
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.