Ricky wrote:
> Hi All,
> I am trying to porting mod_cgi script to mod_perl script because
> the mod_cgi script don't run correctly under mod_perl.
> 
> When running under apache::registry, the script show wrong result.

what do you mean, wrong results. Have you read
http://perl.apache.org/preview/modperl-docs/dst_html/docs/1.0/guide/porting.html

> When running under apache::perlrun, the script sometimes crash.
> In error_log show :
> "can't locate object method "uri" via package "Apache::perlrun"
> 
> In mod_perl manual said that the script usually run in apache::perlrun 
> widthout change but not in my script.
> 
> And I can't add "use strict" because it will crash the script immediatelly.
> In error_log show :
> "Variable "%in" is not imported at /home/httpd/html/scdf/scdf.plx line 174."
> "Global symbol "$sth" requires explicit package name at 
> /home/httpd/html/scdf/scdf.plx line 171."

You better fix these errors, and keep 'use strict' in place. Then 
PerlRun should work without any problems in most cases. If after fixing 
those problems you still have problems, come back with your relevant 
questions again.

It's a good idea to have your code running under 'use strict' no matter 
if you use mod_perl or not. This will save you a lot of grief in a long run.

> Our company planning to move from Perl/CGI to better/faster technology.
> Currently research about mod_perl.
> Is it a good decision try to move to mod_perl because the implementation time 
> is slow.
> Is there any other tech that easier/more faster than mod_perl?
> How about PHP or JSP?

It depends on your definition of "easier".

Easier==sloppier: better stay away from mod_perl.
Easier==more flexible: go with mod_perl.

As for the speed, I doubt you will find something *significantly* faster 
than mod_perl. Assuming that you learn how to get the most our of mod_perl.

[p.s. please make sure you reply back to the list!]

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Reply via email to