summaryrefslogtreecommitdiff
path: root/devel/p5-constant/DESCR
blob: 4bfae6cf93d1a2cd58a8ca90ac9c56c64443a5c4 (plain)
1
2
3
4
5
6
This pragma allows constants to be declared at compile-time.

When a constant is used in an expression, Perl replaces it with its value at
compile time, and may then optimize the expression further. In particular,
any code in an if (CONSTANT) block will be optimized away if the constant
is false.