I have a small python program that I am trying to include in a perl
program using inline.  Here is my perl program called test.pl
 
#!/usr/bin/perl -w
 
use Inline Python => <<'END';
#!/bin/env python
 
import sys, string
print sys.path
print sys.version
# import Numeric
# from Numeric import *
 
def JAxH(x):
  return "Just Another %s Hacker" % x
END
 
print JAxH('Inline'), "\n";

The problem is that when I run this, it is using python version 2.2.3
which doesn't have the Numeric module.  The numeric module does exist in
2.4.2.  If I source that environment before I run the perl script, I get
version 2.4.2 when I run the python script standalone and 2.2.3 when I
run the perl script.
 
Is there anyway to tell Inline what version of python I want to use?
 
Thanks in Advance,
Greg
 

Reply via email to