Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: prevent stringification for hash-keys

by morgon (Priest)
on Feb 16, 2019 at 23:52 UTC ( #1230009=note: print w/replies, xml ) Need Help??


in reply to Re: prevent stringification for hash-keys
in thread prevent stringification for hash-keys

That's sort of a solution, but I still would need to explicitely call lock_keys on every hash I use.

What I really want is a way to make $hash{bare_word} a compile-time error in a lexical scope...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1230009]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2020-05-27 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (154 votes). Check out past polls.

    Notices?