kinaseman has asked for the wisdom of the Perl Monks concerning the following question:
I remember reading, years ago, a recommendation that hash keys should always be quoted. The reason given was that future versions of Perl would not allow bare strings as hash keys. I have used quotation for keys religiously since, but many of the people who work with me do not. We therefore have both new and legacy code with bare hash keys. Is there any truth to the rumor about bare keys? Should I make this into a major style issue?
Note that this is not a question about whether one can use bare strings as keys, but about whether one should.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: quotes in hash keys
by adrianh (Chancellor) on May 21, 2006 at 14:07 UTC | |
by kinaseman (Acolyte) on May 21, 2006 at 14:39 UTC | |
by adrianh (Chancellor) on May 21, 2006 at 15:55 UTC | |
Re: quotes in hash keys
by ioannis (Abbot) on May 21, 2006 at 15:37 UTC | |
Re: quotes in hash keys
by BazB (Priest) on May 21, 2006 at 22:36 UTC | |
Re: quotes in hash keys
by spiritway (Vicar) on May 22, 2006 at 01:12 UTC | |
Re: quotes in hash keys
by Argel (Prior) on May 23, 2006 at 17:33 UTC |
Back to
Seekers of Perl Wisdom