Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: How to interpolate CONSTANTS in Here docs? (compile-time)

by LanX (Saint)
on Feb 16, 2015 at 03:01 UTC ( [id://1116840]=note: print w/replies, xml ) Need Help??


in reply to Re: How to interpolate CONSTANTS in Here docs?
in thread How to interpolate CONSTANTS in Here docs?

> the things which use constant creates are not actually “compile-time constants.” 

> to occur “at compile-time,” well-l-l-l... (shrug) “it just doesn’t happen that way

> doesn’t have much of a concept of “compile-time.”

They are compile time constants!

See "constant folding" in perlop or "constant functions" in perlsub or just try to B::Deparse on actual code...

... or maybe just take a look into constant ?

When a constant is used in an expression, Perl replaces it with its value at compile time,

You know it costs lots of energy always correcting the nonsense you are spreading.

Cheers Rolf

PS: Je suis Charlie!

  • Comment on Re^2: How to interpolate CONSTANTS in Here docs? (compile-time)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2024-04-18 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found