On Mon Nov 24 01:07:16 2008, rafael wrote: > 2008/11/21 james@netcraft.com (via RT) <perlbug-followup@perl.org>: > > Incorrect brace notation causes the brace to be interpreted as a > > literal string instead, with no warning generated. > > > > For example: > > Perl -e 'use strict; use warnings; if ("111" =~ /\d{1.3}/) { print > "true"; }' > > perl -e 'use strict; use warnings; if ("1{1.3}" =~ /\d{1.3}/) { > print "true"; }' > > true > > > > Whilst I understand why the second line returns true, that > interpretation of the > > braces was probably a mistake and so I think that if the warnings > pragma is in > > use, this should generate a warning. > > The line between situations where the warning is OK and where it is > superfluous is not well-defined. For example, should /1{/ warn ? > should /1{.}/ warn ? should /{}/ warn ? (In all those situations I'd > favor the answer "no".) Aren't we going to introduce spurious and > noisy warnings ? > Rafael supplied the original poster with a response more than four years ago, and there has been no further correspondence in this ticket. I am closing this ticket. Any discussion of new warnings should start in a new RT. Thank you very much. Jim Keenan --- via perlbug: queue: perl5 status: open https://rt.perl.org:443/rt3/Ticket/Display.html?id=60726Thread Next