Skip Menu |

This queue is for tickets about the Perl-Tidy CPAN distribution.

Report information
The Basics
Id: 79394
Status: resolved
Priority: 0/
Queue: Perl-Tidy

People
Owner: Nobody in particular
Requestors: book [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



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
Thanks, I'll try to get this in the next release. Steve
On Thu Sep 06 13:12:41 2012, SHANCOCK wrote: Show quoted text
> Thanks, I'll try to get this in the next release.
Thanks! I realized there was a missing operator in my wishlist: @a = ( ~~<> ); # instead of: @a = ( ~~ <> ); -- BooK
Added flag -tso in Version 20121207. It is off by default. -Steve