package HR; #### <===== HR, and NOT MyModule !!!! use strict; # The code... sub myFunction { } 1;