I have a function that I would like to define in two different Perl scripts, but don't like to edit them. Is there any way that I can have includeit (as in PHP) from an external file?
FUNC FILE:
sub test {
}
FILE 1:
include func_file;
foo();
bar();
test();
FILE 2:
include func_file;
blah();
test();
source
share