package Test; use MyCoolModule; sub something { print 'hello, world'; } 1; #### sub import { *{'Test::something'} = sub { print 'greetings, earthlings!' }; }