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

2012-05-23 Thread sono-io
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

Re: To quote variables or not

2012-05-23 Thread John W. Krahn
sono...@fannullone.us wrote: Subject: To quote variables or not Your question is not about quoting variables, which is bad, but about quoting hash keys. See: perldoc -q quoting A script that I'm refactoring has global variables in two different styles, e.g.: $main::global-&

Re: To quote variables or not

2012-05-23 Thread Shawn H Corey
On 12-05-23 08:13 PM, sono...@fannullone.us wrote: A script that I'm refactoring has global variables in two different styles, e.g.: $main::global->{form}->{'mailprog'} $main::global->{form}->{mailprog} The quote marks don't seem to make a difference, so what would be the adv

To quote variables or not

2012-05-23 Thread sono-io
A script that I'm refactoring has global variables in two different styles, e.g.: $main::global->{form}->{'mailprog'} $main::global->{form}->{mailprog} The quote marks don't seem to make a difference, so what would be the advantage of using them? What are they and what do they