# In Test.pm package Test; sub import { print "Boo!\n"; } 1; -------------- # In your script use Test;