use ClanBotFire; ClanBotFire->heyhey(); #or #&ClanBotFire::heyhey() #### #"ClanBotFire.pm" package ClanBotFire; use lib "C:/Program Files/Perl Express/Scripts"; BEGIN{ use Exporter(); @ISA = qw(Exporter); @EXPORT = qw(&heyhey); } sub heyhey { print "hello world"; } 1; #### use ClanBotFire; heyhey; ####