Skip Menu |

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

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

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

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



Subject: perltidy fails on certain anonymous hash references
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.
Subject: Re: [rt.cpan.org #116344] perltidy fails on certain anonymous hash references
Date: Wed, 20 Jul 2016 16:39:38 -0700
To: "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org>
From: Steven Hancock <perltidy [...] users.sourceforge.net>
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. > >
This is fixed in version 20170521.