http://qs321.pair.com?node_id=654295


in reply to Perl Riddle

I can't trace your problem in detail right now, but I'd try saying

use vars '%ENGINES';
before the BEGIN block. Omit the use statement in the block.

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