List Info

Thread: setting perls ARGV




setting perls ARGV
user name
2006-06-01 00:39:50
Hi Felix

I have a perl file which usually gets called from the
command line. From 
my python script I am reading the file into a string and the
calling 
perl.eval on the string.

Because the perl script is usually executed from the command
line, the 
script makes use of ARGV. How can I set this from my python
script?

Mathew

_______________________________________________
Zope-perl maillist  -  Zope-perlzope.org
http:
//mail.zope.org/mailman/listinfo/zope-perl
setting perls ARGV
user name
2006-06-01 09:55:12
Hallo Mathew,

Mathew Yeates schrieb:
> I have a perl file which usually gets called from the
command line. From
> my python script I am reading the file into a string
and the calling 
> perl.eval on the string.

> Because the perl script is usually executed from the
command line, the 
> script makes use of ARGV. How can I set this
from my python script?

I don't know if this is supported yet.
1. os.system(" ... ") will always work.
2. Ideally sys.argv = ["abc", "..."]
should work too but I think, a
patch is needed for this.

-- 
Felix

_______________________________________________
Zope-perl maillist  -  Zope-perlzope.org
http:
//mail.zope.org/mailman/listinfo/zope-perl
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )