Simplest way is with the 'e' modifier, plus periods:
$test =~ s/fuubar/$test.Yes.$bar/gie;
The e modifier indicates that the second half of the regex should be evaluated as a perl expression, so in this case the periods are interpreted as 'concatenation' characters - effectively they become spacers.
netcommr
11:21 pm on Jan 3, 2002 (gmt 0)
Brett, just escape the 'Y' (works in most cases)
s/fuubar/$test\Yes$bar/gi;
Brett_Tabke
12:09 am on Jan 4, 2002 (gmt 0)
Well that's it. Thanks Danny.
That works ok netcommer for about 15 out of 26 characters. (eg \n \t...)