Re: [Zope-Perl] call subroutine by pyperl

2010-03-31 Thread Tommy Ditlev Henriksen
I look at it some time ago, and had some problems with pointer errors. I decided to use an JSON gw instead. If any interrest Ill be happy to share! kr Tommy On Wed, Mar 31, 2010 at 3:23 PM, DmitriKo wrote: > Hey, Kenny. > > I offer to stop wasting your time on that cool by marginal solution.

Re: [Zope-Perl] call subroutine by pyperl

2010-03-31 Thread DmitriKo
Hey, Kenny. I offer to stop wasting your time on that cool by marginal solution. Please use old good tools for inter program communication. $ perl test.pm | python test.py as example where output from test.pm come to sys.stdin in python test.py use json, xml, text ... with easy. -- DmitriKo

[Zope-Perl] call subroutine by pyperl

2010-03-31 Thread Kenny
Dear all, I have a question about pyperl. there is a perl module test.pm: #! /usr/bin/perl package tset sub Cal { my ($v1,$v2)=...@_; my $result=$v1+$v2; } print "this is a test \n"; 1; And there is a python file that calls the module above, import perl perl.require("test"); #perl.call("Usage","