Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Multiple tasks in same_script, or multiple_scripts?

by mfriedman (Monk)
on Jun 02, 2002 at 03:54 UTC ( #170979=note: print w/replies, xml ) Need Help??


in reply to Multiple tasks in same_script, or multiple_scripts?

If you're going to one-script route, and you don't want anything fancy like CGI::Application, I would definately reccomend AGAINST using a giant if/else structure for your script. Maintaining code like that can be a nightmare. (Trust me, I know. One developer at my company left behind a webapp with a 1000 line if/else structure. Yikes.)

I prefer using a hash of sub references as a dispatch table.

  • Comment on Re: Multiple tasks in same_script, or multiple_scripts?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://170979]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2021-06-18 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (87 votes). Check out past polls.

    Notices?