develooper Front page | perl.perl5.porters | Postings from June 2013

[perl #118609] [PATCH] Quote and indent %B::Concise::priv initialisation consistently

Thread Previous
Dagfinn Ilmari Mannsåker
June 23, 2013 20:13
[perl #118609] [PATCH] Quote and indent %B::Concise::priv initialisation consistently
Message ID:
# New Ticket Created by  Dagfinn Ilmari Mannsåker 
# Please include the string:  [perl #118609]
# in the subject line of all future correspondence about this issue. 
# <URL: >

The initialisation of the hash was a horribly inconsistent mess of
quoted vs. unquoted hash keys, single vs. double quotes, indentation and
qw delimiters.  This makes it consistently use

  - qw() for all word lists
  - double quotes for single strings (only) where necessary
  - hanging indent after opening operator/paren

There's no difference in the resulting data structure, as verified with:
  ./perl -Ilib -MData::Dumper -MB::Concise -e 'package Data::Dumper {
    $Sortkeys = $Terse = $Useqq = $Deepcopy = 1; $Quotekeys = 0 }
    print Dumper(\%B::Concise::priv)'

"A disappointingly low fraction of the human race is,
 at any given time, on fire." - Stig Sandbeck Mathisen

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About