perl_diver

msg:3173906 | 7:01 pm on Nov 30, 2006 (gmt 0) |
There are no performances issues that I am aware of. If you have seldom used modules you could load them conditionally only when they are needed: if (condition) {require 'foo.pm'}
|
maximillianos

msg:3174039 | 8:49 pm on Nov 30, 2006 (gmt 0) |
Thanks for the reply. Most are required. I use them to help modularize my code. Not sure if that is the best approach... but that is what I've been doing... =)
|
phranque

msg:3174625 | 9:37 am on Dec 1, 2006 (gmt 0) |
if you have concerns about perl cgi script efficiency you should look into mod_perl. (assuming apache here...)
|
rkrause

msg:3192292 | 6:47 pm on Dec 18, 2006 (gmt 0) |
Dear maximillianos: Good question. For all practical purposes, the require statement is just an enhanced form of do that makes it possible to more effectively load libraries and modules. Further, the use statement is an enhanced form of require that makes it possible to more effectively import modules. If you simply want to modularize your code and you are highly concerned about efficiency, you could theoretically use a do statement to achieve nearly the same result as require. I would advise reading the perldocs before doing so, as there are important distinctions nonetheless. --Randall
|
|