in reply to 5.10: Are scoped constants possible?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 5.10: Are scoped constants possible?
by BrowserUk (Patriarch) on Dec 28, 2007 at 01:36 UTC | |
by Anonymous Monk on Dec 28, 2007 at 03:09 UTC | |
by BrowserUk (Patriarch) on Dec 28, 2007 at 09:16 UTC |