This post demonstrates how to use Perl 5 constants with String Interpolation and Regular Expressions. I will briefly explain how String Interpolati...
For further actions, you may consider blocking this person and/or reporting abuse
I didn't know this way to interpolate variables using this notation, also I thought it was impossible to interpolate constants, for this reason at the work we switched from
const
pragma to Readonly as suggested by the ProhibitConstantPragma perl critic policyThe important feature of constants is that they are inlined during the compile time, unlike Readonly. Interestingly,
still inlines the value, but not the reference and dereference: