Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: How Constant pragma works with multi constants

by manorhce (Beadle)
on Feb 06, 2013 at 13:37 UTC ( [id://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

Replies are listed 'Best First'.
Re^2: How Constant pragma works with multi constants
by AnomalousMonk (Archbishop) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1017431]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-20 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found