require 'My/Module.pm'; print My::Module::foo(); #### use my_evil_pragma; # Here this should really load 'Another/Module.pm', # possibly using my_evil_pragma::replace_name($mod) require 'My/Module.pm'; print Another::Module::foo();