On Wed, 2006-14-06 at 16:40 -0700, Hardly Armchair wrote: > Hello All, > > I was wondering if it is more efficient (in terms of speed and processor > load) to have two different scripts of approximately the same size > called to handle two different functions, or to have one large script > handle all cgi functions using subroutines. Or perhaps these situations > are equivalent.
And what, exactly, do you mean by efficient? Most definitions of efficient mean getting the maximum benefit from available resources. So, does that mean the users have minimal response time? Or does it mean your code maintainers can fix bugs easily? Or does it mean your site has minimal cost on the internet? Normally, compartizing your site would mean you can deal with only one problem at a time, without worrying about its effects on the rest of the site. But you would have to decide exactly what efficient really means. -- __END__ Just my 0.00000002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle * Perl tutorials at http://perlmonks.org/?node=Tutorials * A searchable perldoc is at http://perldoc.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>