RE: Problem with Perl5Substitution
"ravi" <[email protected]> Thu, 8 May 2003 00:43:57 -0500
| Newsgroups | gmane.comp.jakarta.oro.user |
|---|---|
| Message-ID | <000001c31524$d3dc6c30$0b01a8c0@htsony> |
Thank you. It worked. I had version 2.0.1. I upgraded to 2.0.7 -----Original Message----- From: Daniel F. Savarese [mailto:[email protected]] Sent: Wednesday, May 07, 2003 8:42 PM To: ORO Users List Subject: Re: Problem with Perl5Substitution In message <[email protected]>, "Daniel F. Savar ese" writes: >In message <000001c314cf$d77c9e00$2a00a8c0@htsony>, "ravi" writes: >>me "let $&hope he $&do the best". i.e. It's just replacing the match >>string with $& instead of inserting a blank space before it... > >Use $0 instead of $&. Actually, scratch that. $& works; Murphy made that addition for version 2.0.6. Make sure you're using that version or later. The behavior of Perl5Substitution(sub) is the same as Perl5Substitution(sub, Perl5Substitution.INTERPOLATE_ALL), so there's no error in your code that I can see. I tested your substitution with the substituteExample example program and it worked. daniel --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]