in reply to Defining a module .....

you could read about modules. and if you just want your subroutines.. you can structure like this:

# file1.pl #this file contains your subroutines... # end your file with a return true.. or a true value.. 1; # this shoud do. ############ # File2.pl # in the beginning of your file BEGIN { require './file1.pl'; } # this will get what you want...
Just be sure to check the link for creating modules.


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/