I can't trace your problem in detail right now, but I'd try saying
before the BEGIN block. Omit the use statement in the block.use vars '%ENGINES';
I remain uncertain about what our accomplishes, but I'm pretty sure that putting it in a BEGIN block restricts its scope.
Global variables ain't fashionable, but they have their uses in perl for class data and such.
After Compline,
Zaxo
In reply to Re: Perl Riddle
by Zaxo
in thread Perl Riddle
by lesage
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |