in reply to Exporting Dynamically Created Subroutines
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Exporting Dynamically Created Subroutines
by agianni (Hermit) on Apr 03, 2007 at 18:43 UTC |