MyModule.pm package MyModule; use strict; use warnings; sub func1 { your code here... } sub func2 { your code here... } 1;