If a string looks like a valid identifier it doesn't have to be quoted if it's either used as a hash key, or on the left side of a fat arrow (=>).
Isn't a string on the left side of a fat arrow a hash key? Or is there a subtle difference that I'm missing...
You are very mistaken. You are confusing syntax with semantics. qw returns a list of strings.
Forgive me, but this is still confusing to me. My understanding is that qw accepts whitespace-separated "words" and returns a list of quoted "words". I'm not sure how this differs from what you just wrote.
Thanks for everyone's input on this,
Erik
In reply to Re: Re: quoting style for lists
by erikprice
in thread quoting style for lists
by erikprice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |