See Hash::Util for the concept of 'restricted hashes'.
That said, I don't know of anyone who has used perl for more than a few weeks that feels the need to use them; nor in the 12 or 13 years since 5.8, have I encountered any code in the wild that uses them.
In reply to Re: strict "vars" mode for hash key literals?
by BrowserUk
in thread strict "vars" mode for hash key literals?
by perlancar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |