This question is really simple.
How do I export a dispatch table from an external module?
my $typecolors = { 1 => \&release, 2 => \&event, 3 => \&gossip, 4 => \&props, 5 => \&diss, 6 => \&other, }; sub release {...} sub event {...} sub gossip {...} sub props {...} sub diss {...} sub other {...}
I have tried
use subs qw($typecolors);
and it just doesn't work. $typecolors is OK to export in the module, and so are the subs it calls.
Amiri
In reply to Exporting a Dispatch Table by amiribarksdale
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |