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

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

Thread Previous
From:
Dagfinn Ilmari Mannsåker
Date:
June 23, 2013 20:13
Subject:
[perl #118609] [PATCH] Quote and indent %B::Concise::priv initialisation consistently
Message ID:
rt-3.6.HEAD-2552-1372018364-246.118609-75-0@perl.org
# 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: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118609 >



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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About