Hi,

How I should write a warn() statement in startup.pl? I am new to Perl
and I wrote 'warn;' and 'warn(use lib 'path');' but the errors where
like 'Warning: something's wrong'.

Another thing that I am thinking it could be related to my problem is
that I am using php on my website and I call the perl script with
system(). It works ok if I write my subroutines in the same perl script
file that it's called from php file or if I write the absolute path to
perl_functions.pl in require (in my perl script). Could this be related
with loading startup.pl? I am new to mod_perl and I am wondering if I
call a perl file from a php file with system() it isn't being run under
mod_perl but under a system shell. In my system() statement I don't
invoke perl interpreter, just the location of the perl script that is
configured in httpd.conf to be executed under mod_perl:

system('search.pl');

Well, I would appreciate any idea or help as usual.
Regards.

> On 5/29/07, Alicia Amadoz <[EMAIL PROTECTED]> wrote:
> > In startup.pl there are some modules called and they were also called
> > from my script file. So, I deleted the use syntax from my script file so
> > that the modules only were called from startup.pl. If I have an error
> > like 'Can't locate object method via package', I guess that startup.pl
> > isn't being loaded.
> 
> That sounds like it should work.  You can also try using a warn()
> statement in startup.pl.  It should show up on the terminal when you
> run apachectl if your startup.pl is being called.
> 
> - Perrin
> 
> 

Reply via email to