New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
B::Deparse and scoping #6478
Comments
From @JuerdCreated by @Juerd2;0 juerd@ouranos:~$ perl -le'for(my $i = 5;0;1) { } print $i' 2;0 juerd@ouranos:~$ perl -MO=Deparse -le'for(my $i = 5;0;1) { } print $i' | perl Deparse simplifies the loop, but gets scoping wrong when it does that: 2;0 juerd@ouranos:~$ perl -MO=Deparse -le'for(my $i = 5;0;1) { } print $i' Perl Info
|
From smcc@mit.edu
Juerd> This is a bug report for perl from juerd@cpan.org, generated Juerd> ----------------------------------------------------------------- Juerd> Deparse simplifies the loop, but gets scoping wrong when it Juerd> $ perl -MO=Deparse -le'for(my $i = 5;0;1) { } print $i' The simplifying is actually being done by perl before B::Deparse sees Looking at the OP tree, you can see that almost nothing remains of the % perl -MO=Concise -e 'for (my $i = 5;0;) {} exit' For comparison, % perl -MO=Concise -e 'my $i = 5; exit' The only differences are the extra nextstate in the ex-for case, and This could probably be fixed by another special case in lineseq(), -- Stephen |
From @jkeenanOn Thu May 01 23:12:03 2003, smcc wrote:
Do people believe that there is a problem here which needs fixing? Thank you very much. |
From @ap* James E Keenan via RT <perlbug-followup@perl.org> [2012-09-28 04:05]:
I do. It seems to have bitten almost no one so it may go unfixed for |
Migrated from rt.perl.org#22073 (status was 'open')
Searchable as RT22073$
The text was updated successfully, but these errors were encountered: