Okay. I've got something that's been bugging me. And I need to get some feedback on this or I will not be able to move on with my day.
I had some large modules, and I realized they did not need to load all, so .. instead of
use Cwd;
sub iamin {
return cwd;
}
I do
sub iamin {
require Cwd;
return Cwd::cwd();
}
So I just require the modules I want if needed.
So, what if I am calling the sub or method a million times? Is perl just skipping over the require line because it's been already loaded? Or is there a little something going on that would eventually cause a performance hit?