Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: How Constant pragma works with multi constants

by BrowserUk (Pope)
on Feb 06, 2013 at 13:26 UTC ( #1017427=note: print w/replies, xml ) Need Help??

in reply to How Constant pragma works with multi constants

my point is that while "{}" is used for hash reference but how it is taking and works

It looks inside the hash and creates one constant subroutine for each key/value pair, with the key as the name and the value as the value.

Now what's your real question? :)

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: How Constant pragma works with multi constants

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017427]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2018-06-20 00:59 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.