[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem calling a file under mod_perl2


On Tue, 2007-05-29 at 16:32 +0200, Alicia Amadoz wrote:
> 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'.

That means that it is being loaded - the "something's wrong" just means
that there was nothing passed to the warn statement.

if you said : warn('LOADED') it would print the LOADED message.
> 
> 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().


There's your problem - you aren't using mod_perl at all - the system
call launches a new perl interpreter, compiles the code, runs it and
exits.

not very efficient - same as using ordinary CGI.



Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.