For constants, perhaps you want Readonly, which can create lexically-scoped constant variables. The constant module just creates subroutines.
As for scoped pragmas, we've had those for awhile (e.g. strict and warnings). Are you looking for new scoped pragmas? feature is new. The old pragmas bigint, bignum, bigrat, less and sort are now lexically scoped. See perldelta for the list of new pragmas.
In reply to Re: 5.10: Are scoped constants possible?
by brian_d_foy
in thread 5.10: Are scoped constants possible?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |