Subject: | Add an option to properly format the secret operators |
Some of the Perl secret operators are now documented: https://metacpan.org/module/perlsecret
I would be great to have an option to format them in a special way,
so that those who use them can use perltidy on their code.
The proper formmatting for those "operators" would be:
$a =()= @b; # instead of: $a = () = @b;
@a = (@b)x!! $b; # instead of: @a = (@b) x !!$b;
@a = ( 1, 2 )x!! $b; # instead of: @a = ( 1, 2 ) x !!$b;
$a = 0+ $b; # instead of: $a = 0 + $b;
$a = $b +0; # instead of: $a = $b + 0;
I suppose the use of whitespace inside parentheses is controled by
another option: the important bit about ()x!! is to keep )x!! together.
I think those 3 secret operators are the most used ones.
Thanks for considering this.
-- BooK