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

Re: How to interpolate CONSTANTS in Here docs?

by sundialsvc4 (Abbot)
on Feb 12, 2015 at 02:43 UTC ( [id://1116428]=note: print w/replies, xml ) Need Help??


in reply to How to interpolate CONSTANTS in Here docs?

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: How to interpolate CONSTANTS in Here docs? (compile-time)
by LanX (Saint) on Feb 16, 2015 at 03:01 UTC
    > 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!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found