jakarta-oro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <...@savarese.org>
Subject Re: Perl5Util.subsitute() and ${X} symbolic references in the substitution pattern
Date Sun, 06 Dec 2009 23:42:10 GMT

In message <C73E01E3.1DDFD%bldantes@comcast.net>, Brian Dantes writes:
>$x =~ s/abc(def)ghi(jkl)/${1}123${2}/;
>This doesn't work with ORO. Instead I have to:
>Is there a way?

Try the attached patch.  I made it against the trunk, so it may need
a little adjustment for the last released version, but I think it
will apply cleanly against 2.0.8.  If you can confirm for me that the
patch works for you, I'll commit the change.  It's been a very
long time since I've looked at any of this code and I was about to
suggest you preprocess your expressions to transform them from the first
form to the second form, but it turned out the feature was a very quick
fix.  If anyone requires a formal release with the change, we can branch
off of 2.0.8 to cut a 2.0.9 release (the trunk contains incomplete
experimental changes), but I'm going to have to recruit some help from
another Jakarta committer to prepare an actual release as I'm extremely
short on time.  There's a bunch of non-coding stuff involved that has
changed since the last release, centering around the build system, web
page generation, and release requirement compliance that I just don't
have the time for right now.


View raw message