Is there a way to save memory and compile time in perl using modules? For example, do not load all unnecessary, unused submans?
Or is it a good way if I split my sub-sites into many different files pmand then load only the necessary modules? For instance:
sub mysub1() {
use MySubsGroup1;
}
sub mysub2() {
use MySubsGroup2;
}
Does this solution use less memory and less compilation time? Or what is the best way to load only the necessary functions?
source
share