Subject: | CodeLayout::ProhibitQuotedWordLists should be only for words |
IMHO CodeLayout::ProhibitQuotedWordLists is a bit overzealous, banning
for example
my ($x, $y) = ('12-34', '56-78');
These two strings are not English words (or Perl \w+) and it's not
really a list of words. To me, qw() is more for the cases when you have
a variable-length list and they are words, not containing punctuation.
So I would suggest some changes to soften this policy:
- if the list is the RHS of an assignment to a tuple of variables, it's
okay for the RHS to syntactically match the LHS.
- only insist on qw() if the list is really a list of words and not odd
things like '2008-07-23', '18:00', '+3' and so on.