First, I didn't like all the changes made in mod_perl 2.0, since is not so easy/fast to make the script working in the new mod_perl. And since I don't think that mod_perl is intuitive. mod_perl 1.0 isn't intuitive (the developers really need to learn some stuffs to use it), and mod_perl 2.0 is even more not intuitive.
First, whe need to always return a constant for all the sub handlers. Well, on mod_perl 1.0 this is only an option.
2nd, a lot of methods are in different namespaces. Soo, we stay a long time testing the code and finding the new names or locations for the methods. mod_perl 2.0 has a module to help on that, but a little list in the docs of mod_perl 2.0 with the methods that were changed or doesn't exists any more will be good.
3rd, the output doesn't work like in CGI, where you just print to STDOUT. To get a good output you really need to call print() from the apache object: $apache->print(). We still have STDOUT, but will work strange for complex output flux. Also to flush, $|=1 doesn't work, you need to call rflush() for each flush.
Actually for CGI scripts is too hard to have them working on mod_perl 2.0. Is much better to rewrite them.
Actually the biggest problem is that to use mod_perl 2.0 we have a lot of new things. For example, to test mod_perl 2.0 I was using Apache 2.0, Perl-5.8.1 and mod_perl 1.99. And for mod_perl 1.0 I was using Apache 1.3+, Perl-5.6.1 and mod_perl 1.29. Soo, the changes are not only in mod_perl, but in each chunk of software.
Soo, what the monks think about mod_perl 2.0? Are you using/testing it? How it's working?
Graciliano M. P.
"Creativity is the expression of the liberty".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Experiencing with mod_perl 2.0 (1.99)
by adrianh (Chancellor) on Jan 08, 2004 at 22:36 UTC | |
|
Re: Experiencing with mod_perl 2.0 (1.99)
by hardburn (Abbot) on Jan 08, 2004 at 20:50 UTC | |
|
Re: Experiencing with mod_perl 2.0 (1.99)
by borisz (Canon) on Jan 09, 2004 at 00:01 UTC | |
|
Re: Experiencing with mod_perl 2.0 (1.99)
by stvn (Monsignor) on Jan 11, 2004 at 16:36 UTC | |
|
Re: Experiencing with mod_perl 2.0 (1.99)
by Coruscate (Sexton) on Jan 09, 2004 at 13:49 UTC | |
|
Re: CGI scripts is too hard to have them working on mod_perl 2.0
by Arunbear (Prior) on Jan 09, 2004 at 16:51 UTC | |
by tilly (Archbishop) on Jan 11, 2004 at 16:02 UTC |