Ken Williams <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] (Alexei V. Barantsev) wrote:
> 
> >Jerrad Pierce <[EMAIL PROTECTED]> writes:
> >
> >> > On 11 Jul 2000, Alexei V. Barantsev wrote:
> >> > 
> >> > > >From command line all is ok
> >> > > 
> >> > > <HTML LANG="en-US"><HEAD><TITLE>Untitled Document</TITLE>
> >> > > </HEAD><BODY><P>File::Copy::copydir  ok</P>
> >> > > <P>File::Recurse::recurse  ok</P></BODY></HTML>
> >> > > 
> >> > > In mod_perl I have the the different result
> >> > > 
> >> > > <HTML LANG="en-US"><HEAD><TITLE>Untitled Document</TITLE>
> >> > > </HEAD><BODY><P>File::Copy::copydir  ok</P>
> >> > > <P>File::Recurse::recurse  failed</P></BODY></HTML>
> >> > > 
> >> > > Why mod_perl does not like File::Recurse module???
> >
> >This script works right from command line if I run it as 'apache' -
> >user account I have specially for httpd.
> >
> >But the scripts failed to find File::Recurse::recurse if running under
> >usual mod_cgi!

Sorry, it was disinformation, under mod_cgi the script works as
expected, all is ok, the problem appears only in mod_perl environment.

> >By the way, %File::Recurse:: contains symbol for 'recurse', so I can't
> >understant why it is not defined...
> 
> 
> It seems like you're loading two different modules, perhaps.  Try
> printing out $INC{'File/Recurse.pm'} and see whether it's different
> under command line (or CGI) & mod_perl.

I'm loadind the same module, in both cases
$INC{'File/Recurse.pm'} eq /usr/lib/perl5/site_perl/5.005/File/Recurse.pm

> Also, make doubly sure that your mod_perl & standalone perl are using
> the same perl binary.  Do you have more than one?

I have only one perl executable, version 5.005_03 built for i386-linux

I could not understand the following: %File::Recurse:: contains symbol
for 'recurse' but none of ($|@|%|&)recurse is defined. Is it possible
to ask perl FOR WHAT have it created this symbol?

-- 
ab
ICQ: 3959207

Reply via email to