- or download this
%functions = (
'?' => 0,
...
);
# have to initialize this outside declaration of %functions
$functions{'?'} = $functions{'HELP'};
- or download this
while(<>) {
$func = $_;
...
print "\"$func\" not defined\n";
}
}
- or download this
&$functions{$func};
- or download this
my $code;
$code = $functions{$func};
&$code;