#!/usr/bin/perl # you may need to do this: BEGIN{push @INC, "/path/to/mysubs/module"} # so that Perl can find your module when you do this: use Mysubs; # you can now call banner_rotator sub (or any sub) like this: &Mysubs::banner_rotator;