<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 &amp;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&nbsp; 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>
&gt;<BR>
&gt;anand&nbsp; d schrieb:<BR>
&gt; &gt;&gt;&gt;&gt; perl.require(&quot;POSIX&quot;)<BR>
&gt; &gt; 1<BR>
&gt; &gt;&gt;&gt;&gt; x=perl.call('import') # import is a function in POSIX.pm<BR>
&gt; &gt; Traceback (most recent call last):<BR>
&gt; &gt;&nbsp;  File &quot;&lt;stdin&gt;&quot;, line 1, in ?<BR>
&gt; &gt; perl.PerlError: Undefined subroutine &amp;main::import called.<BR>
&gt;<BR>
&gt;[fs@workstation pyperl-1.0.1c]$ perldoc POSIX&nbsp; | grep import<BR>
&gt;[fs@workstation pyperl-1.0.1c]$<BR>
&gt;<BR>
&gt;I don't see a POSIX::import function in perldoc. Please show us your<BR>
&gt;Perl code you try to write. Is it something like:<BR>
&gt;<BR>
&gt;----------------<BR>
&gt;require POSIX;<BR>
&gt;import POSIX;<BR>
&gt;print clock(),&quot;\n&quot;;<BR>
&gt;----------------<BR>
&gt;<BR>
&gt;This can be achieved by:<BR>
&gt;import perl<BR>
&gt;perl.require(&quot;POSIX&quot;)<BR>
&gt;perl.eval('import POSIX; print clock(),&quot;\n&quot;;')<BR>
&gt;<BR>
&gt;If you find bugs, please provide a testcase for it (see the 't'<BR>
&gt;directory for examples).<BR>
&gt;<BR>
&gt;--<BR>
&gt;Felix<BR>
&gt;<BR>
&gt;_______________________________________________<BR>
&gt;Zope-perl maillist&nbsp; -&nbsp; Zope-perl@zope.org<BR>
&gt;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>