But now, how can you tell Perl to pull in that program snippet from
another file? You could do it the hard way:
sub load_common_subroutines {
open MORE_CODE, "navigation.pl" or die "navigation.pl: $!";
undef $/; # enable slurp mode
my $more_code = <MORE_CODE>;
close MORE_CODE;
eval $more_code;
die $@ if $@;
}