我的Perltidy总是打印到标准输出而不是默认值test.pl.tdy
:
perltidy test.pl
这是我的.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
即使我这样做:
perltidy -b test.pl
它仍然会打印到标准输出而不是test.pl.bak
. 我可以让它转到另一个文件的唯一方法是:
perltidy test.pl > test.pl.tdy
我身上有什么东西.perltidyrc
可能导致这种情况吗?我似乎找不到任何可以解释的东西。