Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: prevent stringification for hash-keys

by soonix (Abbot)
on Feb 17, 2019 at 07:27 UTC ( #1230019=note: print w/replies, xml ) Need Help??


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

No, he wants to avoid stringification of hash keys, especially of barewords.
  • Comment on Re^3: prevent stringification for hash-keys

Replies are listed 'Best First'.
Re^4: prevent stringification for hash-keys
by 1nickt (Abbot) on Feb 17, 2019 at 12:37 UTC

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


    The way forward always starts with a minimal test.
      Terminology is a bitch. While it's true that interpreting a bareword as string, which occurs at complile time, is not called stringification, I think it is clear that OP wants $hash{blahblah} treated differently from $hash{'blahblah'} … only the former should be a syntax terror, something like use stricter; .-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2019-05-23 00:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (140 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!