you could read about modules. and if you just want your subroutines.. you can structure like this:
Just be sure to check the link for creating modules.# 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...
In reply to Re: Defining a module .....
by Chady
in thread Defining a module .....
by galande
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |