我有一个代码段,例如:
my $a_box = [
[$a11, $a12, $a13, $a14, $a15, $a16],
[$a21, $a22, $a23, $a24, $a25, $a26],
[$a31, $a32, $a33, $a34, $a35, $a36],
[$a41, $a42, $a43, $a44, $a45, $a46],
[$a51, $a52, $a53, $a54, $a55, $a56],
[$a61, $a62, $a63, $a64, $a65, $a66],
];
perltidy中是否有任何选项可以使其在这样的括号之前破裂:
my $a_box =
[
[$a11, $a12, $a13, $a14, $a15, $a16],
[$a21, $a22, $a23, $a24, $a25, $a26],
[$a31, $a32, $a33, $a34, $a35, $a36],
[$a41, $a42, $a43, $a44, $a45, $a46],
[$a51, $a52, $a53, $a54, $a55, $a56],
[$a61, $a62, $a63, $a64, $a65, $a66],
];
任何建议都将不胜感激,谢谢!
perl整洁的manpage中没有这样的选项。您可以控制该支架之后是否有Newline ,但之前却不能。有-bli
选项可以在SUBS的开头块之前控制休息,但不会影响列表和数组。