You can export $typecolors like any other variable and use the referenced subs anywhere it lands. Use Exporter for this.
I wonder, though, if you're asking about getting a dispatch table from a module that doesn't already export it. Since $typecolors is a lexical variable, this won't be possible. You'll have to get the module that owns the variable to hand it over to you.
In reply to Re: Exporting a Dispatch Table
by kyle
in thread Exporting a Dispatch Table
by amiribarksdale
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |