Quoting hash keys (was: To quote variables or not)



On May 23, 2012, at 5:35 PM, John W. Krahn wrote:

Your question is not about quoting variables, which is bad, but about quoting hash keys.

On May 23, 2012, at 5:25 PM, Shawn H Corey wrote:

Yes, you can leave the quotes off if the key contains only alphanumerics. Otherwise you need to quote it:

Thanks, guys. It makes sense now.

Marc.



Relevant Pages

  • Re: transposing %d values to %x output
    ... Shawn H Corey wrote: ... John ... Any intelligent fool can make things bigger and ...
    (perl.beginners)
  • Re: Perl style examples (summary)
    ... For CGI: http://users.easystreet.com/ovid/cgi_course/ (John W. Krahn) ... "Perl Best Practices" by Damian Conway ... Janet Goldstein, Christian Winter, Adrian Howard. ...
    (comp.lang.perl.moderated)
  • Re: Games for sale, just in......
    ... I did received an email from Corey and I did ... E.M. Charlie Angels pinball machine,$100 finders fee..... ... John P. Dayhuff wrote: ...
    (rec.games.pinball)
  • Re: Comparing hash tables
    ... John W. Krahn napisal: ... certain sorts of tools at low cost and in short order. ...
    (comp.lang.perl.misc)
  • Re: Fibonacci string
    ... John W. Krahn wrote: ... Take the string '1' and replace it with '10'. ... >>> a Fibonacci sequence for each count (offset by one iteration). ...
    (comp.lang.perl.misc)