1

I have almost no Perl experience but I was wondering if anyone can point me in the right direction. I have a python module with a bunch of functions and I need to create a Perl wrapper that can call these Python functions.

Edited

use Inline Python => <<'END_OF_PYTHON_CODE';
import example_API
END_OF_PYTHON_CODE

   print getPortConfig("google.com", "<port>0</port>");

With this I keep getting, Can't locate Inline.pm in @INC

Edit

How can I install this onto a Windows machine?

4
  • Dod you install Inline::Python? Commented May 23, 2012 at 15:24
  • possible duplicate of Calling a Python module from Perl Commented May 23, 2012 at 15:25
  • How can I install this on a windows machine? Commented May 23, 2012 at 15:28
  • Next time, post new questions as new questions please. Commented May 23, 2012 at 20:09

1 Answer 1

3

Perl has a module called Inline::Python in cpan

If it is acceptable, try it. I never use it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.