<P>
hi,<BR>
Thankz for the solution.We went through the example in /t and solved the problem.We no longer face problem while importing and using standard perl modules.However we r not able to import and use user-defined perl module. We use,<BR>
<BR>
perl.require('User-defined.pm file')<BR>
perl.call('Userdefined::function','args')<BR>
<BR>
However it gives an error of<BR>
perl.PerlError: Undefined subroutine &main::'function' called.<BR>
<BR>
<BR>
Could please tell where pyperl searches for the .pm file by default.i.e. in which directory should we copy our User-defined perl file so that pyperl finds functions written in the .pm file<BR>
<BR>
<BR>
Anand<BR>
GNOWSYS TEAM<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
On Fri, 31 Mar 2006 Felix Schwarz wrote :<BR>
><BR>
>anand d schrieb:<BR>
> >>>> perl.require("POSIX")<BR>
> > 1<BR>
> >>>> x=perl.call('import') # import is a function in POSIX.pm<BR>
> > Traceback (most recent call last):<BR>
> > File "<stdin>", line 1, in ?<BR>
> > perl.PerlError: Undefined subroutine &main::import called.<BR>
><BR>
>[fs@workstation pyperl-1.0.1c]$ perldoc POSIX | grep import<BR>
>[fs@workstation pyperl-1.0.1c]$<BR>
><BR>
>I don't see a POSIX::import function in perldoc. Please show us your<BR>
>Perl code you try to write. Is it something like:<BR>
><BR>
>----------------<BR>
>require POSIX;<BR>
>import POSIX;<BR>
>print clock(),"\n";<BR>
>----------------<BR>
><BR>
>This can be achieved by:<BR>
>import perl<BR>
>perl.require("POSIX")<BR>
>perl.eval('import POSIX; print clock(),"\n";')<BR>
><BR>
>If you find bugs, please provide a testcase for it (see the 't'<BR>
>directory for examples).<BR>
><BR>
>--<BR>
>Felix<BR>
><BR>
>_______________________________________________<BR>
>Zope-perl maillist - Zope-perl@zope.org<BR>
>http://mail.zope.org/mailman/listinfo/zope-perl<BR>
</P>
<br><br>
<a href="http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3"><IMG SRC="http://adworks.rediff.com/cgi-bin/AdWorks/sigimpress.cgi/www.rediff.com/signature-home.htm/1963059423@Middle5?OAS_query=null&PARTNER=3" BORDER=0 VSPACE=0 HSPACE=0></a>