Missing Perl's useful regexp errors

jjore on 2009-09-16T18:10:05

Using ruby-1.9, I just got the helpful exception "bin/pp-pretty:60: undefined (?...) sequence: / (RegexpError)". I don't know what it's complaining about since it's not telling me where inside the 70 line regexp it started failing.

:-(

When I write Perl, I get useful context like:

Reference to nonexistent named group in regex; marked by <-- HERE in m/
  (?
    \#<
    (?&class_nm)
    : [ \t\n]*
    (?:
      0x[0-9a-f]+ [ \t\n]* (?=\@) (?&object_data <-- HERE )
      | [^>]*
    )?
    >
  )/