From: Gurusamy Sarathy Date: Wed, 8 Mar 2000 12:51:35 +0000 (+0000) Subject: clarify docs on return value from binding operators X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f8bab1e9a80ccb40021ba3a528d7bf39dc257b22;p=p5sagit%2Fp5-mst-13.2.git clarify docs on return value from binding operators p4raw-id: //depot/perl@5613 --- diff --git a/pod/perlop.pod b/pod/perlop.pod index 9c8fa23..5e4ce93 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -172,8 +172,11 @@ search or modify the string $_ by default. This operator makes that kind of operation work on some other string. The right argument is a search pattern, substitution, or transliteration. The left argument is what is supposed to be searched, substituted, or transliterated instead of the default -$_. The return value indicates the success of the operation. If the -right argument is an expression rather than a search pattern, +$_. When used in scalar context, the return value generally indicates the +success of the operation. Behavior in list context depends on the particular +operator. See L for details. + +If the right argument is an expression rather than a search pattern, substitution, or transliteration, it is interpreted as a search pattern at run time. This can be less efficient than an explicit search, because the pattern must be compiled every time the expression is evaluated.