package Caller; use strict; use warnings; # # The idea being that I want MyPackage to do something # with 'use_this_function'. Because I can't guarentee the # function will be defined at the point of import, I'm trying # to force the compilation of the module in order to get # the assignment in the symbol table so I can change it appropriately # (I use that word lightly here) # use MyPackage qw( use_this_function ); # From earlier example function dont_use_this_function { return; } function use_this_function { return; } 1;