Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How Constant pragma works with multi constants

by manorhce (Beadle)
on Feb 06, 2013 at 13:37 UTC ( #1017431=note: print w/ replies, xml ) Need Help??


in reply to How Constant pragma works with multi constants

If it is making hash reference then how the value is printed without reference means only calling the name of key

Please correct me if I am wrong, We can not access directly to memory and writing constants in this way creating a hash reference inside the memory


Comment on Re: How Constant pragma works with multi constants
Re^2: How Constant pragma works with multi constants
by AnomalousMonk (Abbot) on Feb 06, 2013 at 14:03 UTC
    If it is making hash reference...

    constant doesn't make a hash reference; the programmer does that. constant takes a hash reference as an argument and uses the data contained in the referent (the key/value pairs) to create constants (empty-prototyped functions). Again, see the source.

Re^2: How Constant pragma works with multi constants
by Anonymous Monk on Feb 06, 2013 at 14:06 UTC

    If it is ...

    So if you don't you read the source of constants.pm and you don't see what the code does , then you can read the source and see what the source code does, and then the answer will emerge or it won't but maybe then something other

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2014-09-19 11:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (137 votes), past polls