No such thing as a small change | |
PerlMonks |
CGI coding styleby 2501 (Pilgrim) |
on Dec 09, 2000 at 00:22 UTC ( [id://45785]=perlquestion: print w/replies, xml ) | Need Help?? |
2501 has asked for the wisdom of the Perl Monks concerning the following question:
I have a large CGI script which acts as a navigation point for traversing other pages and scripts. The main portion of the script is the mother of if-then-else nests. It works perfectly, but it is a nightmare to maintain. It also isn't very modular. Every so often it requires a rewrite to clean up and condense the nest. ideally, it would have been great to use a hash like: unfortunately, sometimes I would also need to handle a couple of lines of code in an if-state, or set some variables before determing the next step in the CGI to take. I was wondering how other monks handle this sort of thing in a more modular fashion, but with a little more flexibility then a hash would offer. thanks for your time!
Back to
Seekers of Perl Wisdom
|
|