You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
B::Deparse generated code affected by use vars? #16238
I discovered that the removal of 'use vars' from B::Deparse affects
the WARNINGS_BITS of deparsed code. I think the attached patch
actually makes for a more pristine deparse.
-----------------------------------------------------------------
[Please describe your issue here]
I discovered that the removal of 'use vars' from B::Deparse affects
the WARNINGS_BITS of deparsed code. I think the attached patch
actually makes for a more pristine deparse.
It looks like this bit is coming from warnings::register as called from use vars, which means it's desirable to remove use vars from B::Deparse.
BEFORE:
$>perl -E'use warnings::register; use warnings; BEGIN { printf("%x", $_) foreach unpack("C*", ${^WARNING_BITS}) } print "\n\n"'
5555555555555555555555555555555555
Activity
p5pRT commentedon Nov 11, 2017
From @toddr
Created by @toddr
I discovered that the removal of 'use vars' from B::Deparse affects
the WARNINGS_BITS of deparsed code. I think the attached patch
actually makes for a more pristine deparse.
Perl Info
p5pRT commentedon Nov 11, 2017
From @toddr
0001-Remove-use-vars-from-B-Deparse.patch
p5pRT commentedon Nov 13, 2017
From @toddr
It looks like this bit is coming from warnings::register as called from use vars, which means it's desirable to remove use vars from B::Deparse.
BEFORE:
$>perl -E'use warnings::register; use warnings; BEGIN { printf("%x",$_) foreach unpack("C*", $ {^WARNING_BITS}) } print "\n\n"'
5555555555555555555555555555555555
AFTER:
$>perl -E'use warnings; BEGIN { printf("%x",$_) foreach unpack("C*", $ {^WARNING_BITS}) } print "\n\n"'
5555555555555555555555555555555515
p5pRT commentedon Nov 15, 2017
From @toddr
Merged to blead in commit 1218f5b
p5pRT commentedon Nov 15, 2017
@toddr - Status changed from 'new' to 'pending release'
p5pRT commentedon Jun 23, 2018
From @khwilliamson
Thank you for filing this report. You have helped make Perl better.
With the release yesterday of Perl 5.28.0, this and 185 other issues have been
resolved.
Perl 5.28.0 may be downloaded via:
https://metacpan.org/release/XSAWYERX/perl-5.28.0
If you find that the problem persists, feel free to reopen this ticket.
p5pRT commentedon Jun 23, 2018
@khwilliamson - Status changed from 'pending release' to 'resolved'