- or download this
use strict;
use vars qw($program);
$program={};
- or download this
sub main {
my $program;
...
print_functions($program);
do_other_stuff($program);
}
- or download this
sub print_functions {
my $program=shift; # this is not needed if $program is
...
# and now you can just use $functions to access the data
}