# SomeModule.pm package SomeModule; END { print "End of SomeModule\n"; } 1; #### # test.pl use SomeModule; END { print "End of main\n"; }