Taking at look at the perltidy sytle key this is the section that you need to refer to, (from web page http://perltidy.sourceforge.net/stylekey.html#braces%20right).

Indentation Style for Other Containers You have a choice of two indentation schemes for non-block containers. + The default is to use a fixed number of spaces per indentation level + (the same number of spaces used for code blocks). Here is an example + of the default: $dbh = DBI->connect( undef, undef, undef, { PrintError => 0, RaiseError => 1 } ); The alternate is to let the location of the opening paren (or square b +racket, or curly brace) define the indentation, like this: $dbh = DBI->connect( undef, undef, undef, { PrintError => 0, RaiseError => 1 } );

If you don't want that extra identation remove the -lp switch.

If you go down the Style key web page it will tell you how to set up all the switches for Perltidy. It presents the options in a if-elsif-else manor making it easy to understand and you go from top to bottom. So you go through the whole page, though you don't implment every switch along the way.


In reply to Re: perltidy: trying to indent closing brace one level more than the starting indentation by Herkum
in thread perltidy: trying to indent closing brace one level more than the starting indentation by Argel

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.