If you use Build.PL with Module::Build then creating the distribution file has the following steps: