I have written a little sub that includes other files in your perl code. And I think, it's exactly what you need. Just try it and see if it works:
include('database.pl');
OR
my $whatever = include('getTime.pl');
...
sub include{open my$H,'<:raw',$_[0];read($H,my$E,999999)or die"Error: Can't include \"$_[0]\"";close$H;eval$E;}
In reply to Re: Splitting program into modules
by harangzsolt33
in thread Splitting program into modules
by lis128
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |