in reply to One Big Script vs Several Specialized Scripts

If it's a CGI script and it starts getting big then you could look at SelfLoader/AutoLoader to save compiling subs you don't use and using require instead of use to save loading in modules if you don't need them.

Also you might want to consider using a templating tool to remove the HTML from your script, not only reducing the code but improving maintanance. If there are any subs that can be reused elsewhere consider putting them in a seperate module.

Of course, if this is running under mod_perl this isn't an issue...

gav^

  • Comment on Re: One Big Script vs Several Specialized Scripts