laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Arunbear, thanks for the example. However, if I'm permitted, I have a follow-up question: does coding it the way you do, by "requiring" the module only if the condition is met, only load the module when it runs?
Normally I reference the module like this: at the start of my program, right after the shebang. Thanks. Update: Well, I Googled and found this informative piece on modules, libraries, etc. I see now that Perl doesn't deal with a require until it comes across it in the code. —Brad "Don't ever take a fence down until you know the reason it was put up. " G. K. Chesterton In reply to Re^2: Program structure: subs vs modules vs Selfloader
by bradcathey
|
|