Folks:

While doing a close eyeball lint of a misbehaving complex rule, I noticed I had made a rather subtle typo:

   mumble{x,y]mumble

Note the closing _square_ bracket. I guess I missed the [SHIFT] key... :)

This did not generate any lint or runtime errors.

Any idea why? I would expect the perl RE engine to have a problem with unbalanced curly braces like that, but a quick test shows it does not (at least, not in 5.8.8)! I would have thought you'd have to escape a curly brace to match it literally, just like you do square brackets...

Does this deserve any special checking, like the || test? If so, I'll open a bug. Or might it be a bug in perl's RE parser?

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 [email protected]    FALaholic #11174     pgpk -a [email protected]
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  The yardstick you should use when considering whether to support a
  given piece of legislation is "what if my worst enemy is chosen to
  administer this law?"
-----------------------------------------------------------------------
 18 days since a sunspot last seen - EPA blames CO2 emissions

Reply via email to