Here's your problem:
@EXPORT = qw( foo );This assignment takes place after the BEGIN block finishes, as the rest of the module executes during a use. It overwrites your carefully-constructed @EXPORT. Move it into the BEGIN block and all is well.
In reply to Re: Exporting Dynamically Created Subroutines
by chromatic
in thread Exporting Dynamically Created Subroutines
by agianni
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |