in reply to need help divining PerlTidy option
Okay, I can live with PerlTidy wanting to dictate line length, but what fresh hell prevents it from aligning that string on the new line with... at the very least, the innermost enclosing for loop? Ideally, it would be aligned with the or die on the previous line
The default maximum line length Perltidy uses is 80 columns ( though not cast in stone ), as stated in the Perltidy documentation.
However, you can change that like so:
perltidy -l=85 perlscript.pl
Please, note the -l=85.
Given, the OP preferred format, the CLI command work for me to produce the format you want:
Please, see EXAMPLES under Perltidy documentation.perltidy -b -i=3 -l=90 perlscript.pl
|
|---|