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
null conditionals should not be allowed #1152
Comments
From pbdb_test@rfi.netFor some reason, Perl accepts a while loop with an empty conditional. 1) Everything else (until, if, unless...) is a syntax error with an At minimum there should be a warning, at best it should be made a This looks like a documentation problem. Here's another intersting problem: do { print "TRUE"; sleep 1 } while (); do { print "TRUE"; sleep 1 } until (); Again, the oddness: IMHO do {...} while () and do {...} until () should both be syntax Unless there's a backwards compatibility issue, all instances of an If I'm feeling brave I'll submit a patch. PS This problem occurs under 5.005_03 and 5.005_62 Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration: Characteristics of this binary (from libperl): Summary of my perl5 (revision 5.0 version 5 subversion 62) configuration: Characteristics of this binary (from libperl): -- Michael G Schwern schwern@pobox.com |
Migrated from rt.perl.org#2115 (status was 'resolved')
Searchable as RT2115$
The text was updated successfully, but these errors were encountered: