Re: call perl from python code

[email protected] (Stella Levin)
Newsgroups perl.inline
Message-ID <[email protected]>
This module is unmaintained, the last version was on 2001.



________________________________
From: David Mertens <[email protected]>
To: Stella Levin <[email protected]> 
Cc: "[email protected]" <[email protected]> 
Sent: Sunday, April 22, 2012 9:09 PM
Subject: Re: call perl from python code


Stella -

Did you have any luck using PyPerl? http://wiki.python.org/moin/PyPerl

David


On Sun, Apr 22, 2012 at 5:21 AM, Stella Levin <[email protected]> wrote:

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
>


-- 
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.