If I want to trap a possible assignment to such a variable, I use Readonly.
This comparison of Readonly against some alternatives (like Scalar::Readonly) might be of interest here.
In reply to Re^2: The best way to use constants
by almut
in thread The best way to use constants
by saurabh.hirani
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |