Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Structure of Perl CGI codeby one4k4 (Hermit) |
on Oct 30, 2001 at 23:52 UTC ( [id://122182]=note: print w/replies, xml ) | Need Help?? |
This is quick, and just my $0.02, but.. I like the concept of modes. Think /cgi-bin/script.pl?mode=order Then, you can do many things.. Create a hash with references to subroutines, and.. I know there is more than one way to call the subroutine in the mode hash, but like I said, this is just spilled out from memory. Anyway, that scales here at work. We have a similar approach, using mod_perl and Apache. The intranet here is huge, and it seems to provide (the dev team, at least) with understood and managable code.... _14k4 - perlmonks@poorheart.com (www.poorheart.com)
In Section
Seekers of Perl Wisdom
|
|