Re: subexpressions in substitution

"Daniel F. Savarese" <[email protected]> Wed, 05 Jun 2002 08:11:50 -0400
Newsgroups gmane.comp.jakarta.oro.user
Message-ID <[email protected]>
In message <[email protected]>, jdijkmei
@xs4all.nl writes:
>DEBUG main rulez.ParseUtilsubstituting: s/\*([^*]*)width([^*])*\*/$140$2/gsx
>
>the $1 gets mingled with the digits of the substition value.

You can escape the parts that aren't part of the saved group index.  You
should be able to do this with Perl5Compiler.quotemeta().

daniel