in reply to Re: Why doesn't @EXPORT = (keys %METHODS) work?
in thread Why doesn't @EXPORT = (keys %METHODS) work?

To my eyes moving more into BEGIN is solving one mistake by making another. Just lose the BEGIN block entirely and (as merlyn pointed out) don't mess up your populating the array and hash. Also avoid the $method/$methods typo that you have.

It will work just fine. After all from the point of view of the place where you are being used from, you already ARE in a BEGIN block...

  • Comment on Re (tilly) 2 (no begin): Why doesn't @EXPORT = (keys %METHODS) work?