Skip Menu |

This queue is for tickets about the B-RecDeparse CPAN distribution.

Report information
The Basics
Id: 99809
Status: resolved
Priority: 0/
Queue: B-RecDeparse

People
Owner: Nobody in particular
Requestors: 'spro^^*%*^6ut# [...] &$%*c
Cc:
AdminCc:

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



Subject: [PATCH] Fix for 5.21.5
Perl 5.21.5 now uses srefgen for \&foo. See the attached patch.
Subject: open_aJImS269.txt
diff -rup B-RecDeparse-0.09-El6Hdm-orig/lib/B/RecDeparse.pm B-RecDeparse-0.09-El6Hdm/lib/B/RecDeparse.pm --- B-RecDeparse-0.09-El6Hdm-orig/lib/B/RecDeparse.pm 2014-10-26 00:15:38.000000000 -0700 +++ B-RecDeparse-0.09-El6Hdm/lib/B/RecDeparse.pm 2014-10-26 00:15:51.000000000 -0700 @@ -190,6 +190,15 @@ sub pp_refgen { } } +sub pp_srefgen { + my $self = shift; + + return do { + local $self->{brd_sub} = 0; + $self->SUPER::pp_srefgen(@_); + } +} + sub pp_gv { my $self = shift;
Le Dim 26 Oct 2014 03:18:24, SPROUT a écrit : Show quoted text
> Perl 5.21.5 now uses srefgen for \&foo. See the attached patch.
Thanks for the patch. It is now live in version 0.10. However, the t/14-refs.t was still failing, but for another reason : it looks like "use strict 'vars'" causes B::Deparse to fully qualify subroutine references. I've opened https://rt.perl.org/Ticket/Display.html?id=124052 about it. Vincent