Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Constants and Subclasses...

by t'mo (Pilgrim)
on Dec 22, 2006 at 18:53 UTC ( #591374=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Constants and Subclasses...
in thread Constants and Subclasses...

Cool, I didn't realize you could constant->import. I had tried to use constant NAME => value inside that loop, but (obviously) it didn't work.


Comment on Re^3: Constants and Subclasses...
Re^4: Constants and Subclasses...
by diotalevi (Canon) on Dec 22, 2006 at 18:56 UTC

    Well sure. use constant FOO => 'bar'; is just shorthand for the following:

    BEGIN { require constant; constant->import( FOO => 'bar' ); }

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://591374]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-12-20 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (97 votes), past polls