Thanks! Steve
On Wed, Jul 20, 2016 at 11:54 AM, brian m. carlson via RT <
bug-Perl-Tidy@rt.cpan.org> wrote:
Show quoted text> Wed Jul 20 14:54:28 2016: Request 116344 was acted upon.
> Transaction: Ticket created by BRIANC
> Queue: Perl-Tidy
> Subject: perltidy fails on certain anonymous hash references
> Broken in: 20150815
> Severity: (no value)
> Owner: Nobody
> Requestors: BRIANC@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=116344 >
>
>
> Attempting to tidy the following code fails:
>
> sub broken {
> return ref {} ? 1 : 0;
> something();
> }
>
> As does this somewhat shorter example:
>
> {} ? 1 : 0;
>
> This is using perltidy 20150815, but it's been present for some time.
> Placing parentheses around the {} makes it work.
>
>