My Perltidy always prints to standard out instead of the default test.pl.tdy:
perltidy test.pl
And here is my .perltidyrc:
-pbp # Start with Perl Best Practices
-w
-l=100 # 100 characters per line
-ce # 'cuddled' elses. elses appear on the same line as last brace
-pt=2 # no parentheses spacing
-pt=2 # High parenthesis tightness
-bt=2 # High brace tightness
-sbt=2 # High square bracket tightness
-bar # opening braces right
-nsbl # open subroutine brace on right
-bbvt=1 # Block Brace Vertical Tightness
-sot # stack opening tokens
-sct # stack closing tokens
-nsfs # no For Loop Semicolon Spaces
-nolq # don't outdent long strings
Even if I do:
perltidy -b test.pl
It will still print to standard out and not go to test.pl.bak. The only way I can get it to go to a different file is by doing:
perltidy test.pl > test.pl.tdy
Is there something in my .perltidyrc that could be causing this? I can't seem to find anything to explain it.
The documentation says in Styles section
(my emphasis) The relevant flags are described in I/O control section.
I don't know why
-pbpincludes the flags to print to standard streams, which imply that there must be only one input file, but there may be a reason; so it may be a good idea to inspect in detail what all those flags under it do.I find that
-nst(--nostandard-ouput) works even right after the-pbp, on the same line.