|
Just to point in the general direction... this is not too clear as I am not too sure, but I did write a small script that worked.
1) Create a file in which you have several subroutines,
sub routine1() {
...;
}
sub routine2() {
...;
}
1;
Make sure you include the last line. Save it as file1.pm
2) In your main program, call these subroutines with,
use file1;
&file1::routine1();
&file1::routine2();
Not sure if there are other things related to this, but my small script did work like this. There may be issues with declaring variables, but not sure.
Hope it starts you on the way to a solution.
Joe
|