Is there an option for controlling how arguments are aligned?

e.g. I have this:

blah("whatever"); blah("this", "that", "more of this", "and another option that makes th +e line super looooooooong");

and want this:

blah("whatever"); blah("this", "that", "more of this", "and another option that makes the line super looooooooong");

I'd like the arguments to be put on new lines when they either a) reach a specific line limit b) is greater than n. Ideally I could get this with data structures as well.

This is the perltidyrc I'm using:

--indent-columns=4 # Indent 4 spaces --check-syntax # perl -c file for a second opinion --maximum-line-length=200 # Maximum line length --continuation-indentation=2 # Continuatioin indentation --nooutdent-labels # No outdenting of labels --paren-tightness=2 # Parens tightness --square-bracket-tightness=1 # Square bracket tightness --paren-tightness=2 # Brace tightness --nospace-for-semicolon # No for semicolon --space-after-keyword=1 # Add space between keyword and openin +g paren --opening-brace-on-new-line # Opening brace always on new line --vertical-tightness=0 # Always break line after { --vertical-tightness-closing=0 # Always break line befor } --blanks-before-comments # Blank line before comments --blanks-before-subs # Blank line before subs

But when I omit the maximum line length, undesirable things like this happen:

blah( "some argument over 80 characters");

I definitely want lines longer than 80 characters.


In reply to Using perltidy with function arguments by aflott

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.