Re: Python pyperl

Felix Schwarz <[email protected]> Fri, 31 Mar 2006 20:27:47 +0200
Newsgroups gmane.comp.web.zope.perl
Message-ID <[email protected]>
anand  d schrieb:
>>>> perl.require("POSIX")
> 1
>>>> x=perl.call('import') # import is a function in POSIX.pm
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> perl.PerlError: Undefined subroutine &main::import called.

[fs@workstation pyperl-1.0.1c]$ perldoc POSIX  | grep import
[fs@workstation pyperl-1.0.1c]$

I don't see a POSIX::import function in perldoc. Please show us your
Perl code you try to write. Is it something like:

----------------
require POSIX;
import POSIX;
print clock(),"\n";
----------------

This can be achieved by:
import perl
perl.require("POSIX")
perl.eval('import POSIX; print clock(),"\n";')

If you find bugs, please provide a testcase for it (see the 't'
directory for examples).

-- 
Felix

_______________________________________________
Zope-perl maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-perl