I have a function that I would like to define in two different Perl scripts, but dislike having to edit both. Is there a way I can include
it (like 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();