I include them as needed, and I never seem to have problems.
I read this as require 'myscript.pl';
It's a small but important step to change this to use myscript, IMHO, as it clarifies the meaning and just makes your actual used-as-a-module script a real perl-module (following the tips and links given to you already).
If I misread this, and including means cut & paste, let not speed, memory, efficiency of the code and such be your first concern, but maintainabilty: turn your code into a module / modules for the sanity of those following you or accompaning you in your coding projects, again by following the tips and links given to you allready.
kind regards,
tomte
Hlade's Law:
If you have a difficult task, give it to a lazy person --
they will find an easier way to do it.
In reply to Re: Module Efficiency
by Tomte
in thread Module Efficiency
by Coplan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |