in reply to CGI/Mod Perl Application Design philosophy - which way do we go?

I break my stuff apart into different scripts. That way I can pre-process a few things appropriate to the action, I don't end up with ridiculous dispatch tables and I can break one part of the site while other people are using other parts.

Using CGI::Application and some well designed supporting modules, you can completely abandon the http://server/index.pl?action=... method and have multiple scripts

I tend to find that any time I cram everything into one script things go wrong because I'm trying to do to much at once.

I still do use the action=? thing, but I tend to think of my scripts as objects and the action=? calls as methods. I still haven't perfected this but it does have advantages.

____________________
Jeremy
I didn't believe in evil until I dated it.

  • Comment on Re: CGI/Mod Perl Application Design philosophy - which way do we go?