If you're worrying about whether loading a module costs time, then you're looking at the wrong locations:
- If your program runs a long time, then loading a module has a neglibile portion of the cost and optimizing that away gains you little opposed to the overall runtime of the program.
- If your program runs a short time but very often, then you should look at how to make your program run a longer time and process multiple requests. This will save you the loading and initialization time.
- If you're still worrying about the time that loading an external file might take, then Perl is the wrong approach.