Which identation style do you prefer?

Over the years I've tried typing it up different styles, ONCE, each :D

For this guy its a tossup between "## hand style" and "## perltidy edited" (shift indentation left)

But, once @static is populated, mostly I let dd() handle it

## original as posted by no longer just digit my @headings = ( {key => 'k', name => 'Kanji', class => 'kanji'}, {key => 'skip', name => 'SKIP', class => 'skip-code'}, {key => 'co', name => 'Suggestion', class => 'skip-code'}, {key => 'disc', name => 'Discussion'}, ); ## perltidy defaults my @headings = ( { key => 'k', name => 'Kanji', class => 'kanji' }, { key => 'skip', name => 'SKIP', class => 'skip-code' }, { key => 'co', name => 'Suggestion', class => 'skip-code' }, { key => 'disc', name => 'Discussion' }, ); ## perltidy edited my @headings = ( { key => 'k', name => 'Kanji', class => 'kanji' }, { key => 'skip', name => 'SKIP', class => 'skip-code' }, { key => 'co', name => 'Suggestion', class => 'skip-code' }, { key => 'disc', name => 'Discussion' }, ); ## Data::Dump::dd my @headings = ( { class => "kanji", key => "k", name => "Kanji" }, { class => "skip-code", key => "skip", name => "SKIP" }, { class => "skip-code", key => "co", name => "Suggestion" }, { key => "disc", name => "Discussion" }, ) ; ## rehohy my @headings; $headings[0]{name} = "Kanji"; #d1 $headings[0]{class} = "kanji"; #d1 $headings[0]{key} = "k"; #d1 $headings[1]{name} = "SKIP"; #d1 $headings[1]{class} = "skip-code"; #d1 $headings[1]{key} = "skip"; #d1 $headings[2]{name} = "Suggestion"; #d1 $headings[2]{class} = "skip-code"; #d1 $headings[2]{key} = "co"; #d1 $headings[3]{name} = "Discussion"; #d1 $headings[3]{key} = "disc"; #d1 ## Data::Dumper->new([@_])->Useqq(1)->Indent(1)->Dump my @headings = ( { "name" => "Kanji", "class" => "kanji", "key" => "k" }, { "name" => "SKIP", "class" => "skip-code", "key" => "skip" }, { "name" => "Suggestion", "class" => "skip-code", "key" => "co" }, { "name" => "Discussion", "key" => "disc" } ); ## Data::Dumper->new([@_])->Useqq(1)->Indent(2)->Dump my @headings = ( { "name" => "Kanji", "class" => "kanji", "key" => "k" }, { "name" => "SKIP", "class" => "skip-code", "key" => "skip" }, { "name" => "Suggestion", "class" => "skip-code", "key" => "co" }, { "name" => "Discussion", "key" => "disc" } ); ## hand style my @headings = ( { "name" => "Kanji", "class" => "kanji", "key" => "k" }, { "name" => "SKIP", "class" => "skip-code", "key" => "skip" }, { "name" => "Suggestion", "class" => "skip-code", "key" => "co" }, { "name" => "Discussion", "key" => "disc" } );

In reply to Re: How would you indent this? Which identation style do you prefer? by Anonymous Monk
in thread How would you indent this? by no longer just digit

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.