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
Inconsistent scoping for while .. redo #9677
Comments
From @kenneth-kThis is a bug report for perl from kennethk@cpan.org, #!/usr/bin/perl my $j = 2; Flags: Site configuration information for perl v5.8.8: Configured by Debian Project at Wed Jan 14 22:49:45 UTC 2009. Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Locally applied patches: @INC for perl v5.8.8: Environment for perl v5.8.8: |
From p5p@spam.wizbit.beOn Mon Mar 09 14:09:46 2009, kennethk@cpan.org wrote:
Hello, Thank you for your bug report. A binary search reveals: http://public.activestate.com/cgi-bin/perlbrowse/p/24412 while (my $x ...) { ...; redo } shouldn't undef $x. This is an intended change of behaviour (a bugfix) so I'm marking this If you want code that behaves correctly on all versions of perl then That is: #!/usr/bin/perl use strict; my $j = 2; (The only reason why your code is printing 210 on 'v5.8.8 built for Kind regards, Bram |
The RT System itself - Status changed from 'new' to 'open' |
p5p@spam.wizbit.be - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#63752 (status was 'resolved')
Searchable as RT63752$
The text was updated successfully, but these errors were encountered: