in reply to Re: strict "vars" mode for hash key literals?
in thread strict "vars" mode for hash key literals?
Wouldn't that be a runtime error? After all, the hash isn't even locked until lock_keys is executed at runtime.
Also, I think there is no performance penalty (except to the call to lock_keys), since I believe all lock_keys does is set the read-only flag on the hash, which is checked regardless of whether you've set lock_keys or not.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: strict "vars" mode for hash key literals?
by kennethk (Abbot) on Oct 18, 2016 at 17:32 UTC | |
by AnomalousMonk (Archbishop) on Oct 18, 2016 at 18:47 UTC | |
|
Re^3: strict "vars" mode for hash key literals?
by hippo (Archbishop) on Oct 18, 2016 at 16:24 UTC |