Here's something I've been wondering....
What kind of performance issues are there if you do a 'use' on the same module in the
same script twice or more?
Before you go ' Well that's stupid, why would you do that? ' let me explain :
Script one has
use CGI;
require stumpy.lib;
stumpy_funtion1("joe","mama");
stumpy_funtion2("hiya");
And the stumpy.lib looks something like {
sub stumpy_function1 {
use CGI;
blah blah blah
}
sub stumpy_function1 {
use CGI;
blah blah blah
}
1;
So does that do anything to slow the script down or does it just ignore it if it's
already been 'use'd?
If it does cause perfance issues is there a way to check and see if the module's
already been 'use'd and then if it hasn't then do use ?
EG if(??????) { use CGI; }
What if you already did
Use CGI params; and in the sub routine you only need say use CGI self_url; ?
Or if you did use CGI param earlier and the sin does use CGI;
See what I I mean there's all kinds of possibilities? What ways can this be avioded or
at least checked to increase performance?
Or do the modules just do it themselves?
Thanks
Dan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]