http://www.perlmonks.org?node_id=7490


in reply to How can I write and call subroutines in separate files?

You can break up the code into logical units:
# file one use File2; setup(); main(); sub main { print "I am in the main subroutine.\n"; } # file 2 sub setup { print "Setting up.\n"; } 1; # use'd files have to return true!