On Wed, 22 Sep 2004 12:05:08 -0700, you wrote: >If I do the following > > $Search = "some text (some text) some text" ; > > $Replace = "New Text $1 New Text" ; > > $Text =~ s/$Search/$Replace/sg ; > >what is the trick to getting the $1 to be resolved?
The best I can manage is eval "\$Text =~ s/$Search/$Replace/g"; with all the risks that eval entails. -- Eric Amick Columbia, MD _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
