On Thu, 30 Apr 1998, Yann Dirson wrote: > I wrote a sample script whose behaviour seems strange to me. At least > I can't find in the doc why it behaves so, nor what I should write to > get the expected result. > > ==== The sample script > #!/usr/bin/perl > > $TRANSLATION = '\1;$2'; > $str = "ab"; > $str =~ s{(.)(.)}{$TRANSLATION};
[snip] Have you tried wrapping the substitution statement with an "eval" construct yet? I think that should make it work. Cheers, Joost -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]