develooper Front page | perl.inline | Postings from April 2012

call perl from python code

Thread Next
From:
Stella Levin
Date:
April 22, 2012 11:11
Subject:
call perl from python code
Message ID:
1335090074.92053.YahooMailNeo@web161206.mail.bf1.yahoo.com
Hi,
I have installed Inline::Python.
Manual says: "perl is a Python module bundled with Inline::Python that gives you access to Perl from inside your Python code"- I cannot find this perl module under installation package
- I cannot get working:

#! /usr/bin/env python
import perl
perl.eval("printf \"HelloFromPerl\";")

- I can get working:

#!/usr/bin/perl
use Inline Python => <<'END';
print "Hello from python"
END

Any help will be appreciated.
Thanks, Stella


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About