Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Perl Riddle

by Zaxo (Archbishop)
on Dec 01, 2007 at 09:45 UTC ( #654295=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://654295]
help
Chatterbox?
[marto]: who?
[Eily]: "hime"? The perl princess?
[Discipulus]: oops !
[marto]: who are we talking about?

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2017-06-23 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (539 votes). Check out past polls.