Presuming your code isn't on a home personal enviroment in a lot of cases it simply isn't practical to use modules. In the case of code used on a 1000 machines say.
If you have 1000 machines at your disposal, you also have a mechanism for file distribution among them. So that's a non issue. Yes, even you can use CPAN.