|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: Subroutines loaded in from ohter filesby tune (Curate) |
| on Nov 28, 2002 at 15:58 UTC ( #216329=note: print w/ replies, xml ) | Need Help?? |
|
The easiest way is to use the "require" directive. Others will recommend using packages, but you can still go with the less painful solution of "require". A file should like this (eg. functions.pl): Note the "1;" at the bottom. In the main file you need the following line somewhere at the beginning:
--
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||