From: Gurusamy Sarathy Date: Tue, 2 May 2000 18:29:10 +0000 (+0000) Subject: add note about how $( doesn't interpolate in REs (from X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1f24770523b86085797280e0a7daee28bb477133;p=p5sagit%2Fp5-mst-13.2.git add note about how $( doesn't interpolate in REs (from Philip Newton ) p4raw-id: //depot/perl@6048 --- diff --git a/pod/perlop.pod b/pod/perlop.pod index c1ac387..b4caed9 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -788,8 +788,8 @@ If "'" is the delimiter, no interpolation is performed on the PATTERN. PATTERN may contain variables, which will be interpolated (and the pattern recompiled) every time the pattern search is evaluated, except -for when the delimiter is a single quote. (Note that C<$)> and C<$|> -might not be interpolated because they look like end-of-string tests.) +for when the delimiter is a single quote. (Note that C<$(>, C<$)>, and +C<$|> are not interpolated because they look like end-of-string tests.) If you want such a pattern to be compiled only once, add a C after the trailing delimiter. This avoids expensive run-time recompilations, and is useful when the value you are interpolating won't change over