in reply to Re: Perl vs. ModPerl
in thread Perl vs. ModPerl

only the cleanest and better structured CGI programs will run without modification under Apache::Registry.

...and they should all be that clean and well-structured.

(I see this the opposite way, alien_life_form - only sloppy code fails under Apache::Registry.)

Replies are listed 'Best First'.
Re: Re: Re: Perl vs. ModPerl
by alien_life_form (Pilgrim) on May 31, 2002 at 16:34 UTC
    Greetings,

    You are right - in fact I tend to think so myself, and would have written as much, except for the embedded subroutine trap which does not necessarily mean the starting code was sloppy...

    BUt apart from that (which is avoided by using packages, arguably a way of achieving better code structure), I have from some time decided to write modperl-compliant CGI code even when I know it will never run under modperl....
    call it the superstrict pragma, if you wish ;)
    Cheers,
    alf


    You can't have everything: where would you put it?