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?? |
> 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.
In Section
Seekers of Perl Wisdom
|
|