Skip Menu |

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

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

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

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



Subject: Parse fails with perl 5.20 and a function signature with default reference
The following valid perl fails: #!/usr/bin/env perl use v5.020; #includes strict use warnings; use experimental 'signatures'; setidentifier(); exit; sub setidentifier($href={}) { say 'hi'; } There is no previous '(' to match a ')' on line 13 13: sub setidentifier($href={}) {
Subject: buginsignatures.pl
#!/usr/bin/env perl use v5.020; #includes strict use warnings; use experimental 'signatures'; # no warnings "experimental::signatures"; setidentifier(); exit; sub setidentifier($href={}) { say 'hi'; }
From: SILLYMOOS [...] cpan.org
I love using perltidy but this bug has bitten me a couple of times, any chance of it being fixed? Setting a default value of a hashref in the signature causes the error: use 5.20.0; use experimental 'signatures'; sub foo ($args = {}) { ... }
Subject: Re: [rt.cpan.org #104427] Parse fails with perl 5.20 and a function signature with default reference
Date: Sat, 2 Jan 2016 15:20:26 -0800
To: "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org>
From: Steven Hancock <perltidy [...] users.sourceforge.net>
It's on the list but the fix is somewhat involved. Steve On Sat, Jan 2, 2016 at 1:23 PM, David Farrell via RT < bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> Queue: Perl-Tidy > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=104427 > > > I love using perltidy but this bug has bitten me a couple of times, any > chance of it being fixed? > > Setting a default value of a hashref in the signature causes the error: > > > use 5.20.0; > use experimental 'signatures'; > > sub foo ($args = {}) > { > ... > } > > >
Do you have thoughts on how this needs to happen? Maybe some of us can chip in if we know what needs to happen.
Subject: Re: [rt.cpan.org #104427] Parse fails with perl 5.20 and a function signature with default reference
Date: Tue, 23 Feb 2016 11:03:18 -0800
To: "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org>
From: Steven Hancock <perltidy [...] users.sourceforge.net>
I should have it soon, but thanks. Steve On Fri, Feb 19, 2016 at 10:14 AM, brian d foy via RT < bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> Queue: Perl-Tidy > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=104427 > > > Do you have thoughts on how this needs to happen? Maybe some of us can > chip in if we know what needs to happen. >
This is fixed in perltidy version 20160301.