#!/usr/bin/perl use warnings; use strict; use lib '.'; use MyModule; MyModule::call(); #### package MyModule; use warnings; use strict; sub call { MyModule2::authorize(); } __PACKAGE__ #### package MyModule2; use warnings; use strict; sub authorize { print "auth\n"; } __PACKAGE__ #### Undefined subroutine &MyModule2::authorize called at MyModule.pm line 6. #### use MyModule2;