From: Perl 5 Porters Date: Mon, 17 Jun 1996 06:21:12 +0000 (+0000) Subject: perl 5.003_01: pod/perlop.pod X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e37d713d85ec003d03d192586753cfcbbe6157c5;p=p5sagit%2Fp5-mst-13.2.git perl 5.003_01: pod/perlop.pod Correct typos and pod formatting Correct documentation for s///: return value with no substitutions, use of backticks as delimiters --- diff --git a/pod/perlop.pod b/pod/perlop.pod index 483a686..91cee46 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -749,7 +749,7 @@ Some frequently seen examples: Searches a string for a pattern, and if found, replaces that pattern with the replacement text and returns the number of substitutions -made. Otherwise it returns false (0). +made. Otherwise it returns false (specifically, the empty string). If no string is specified via the C<=~> or C operator, the C<$_> variable is searched and modified. (The string specified with C<=~> must @@ -777,9 +777,9 @@ Options are: Any non-alphanumeric, non-whitespace delimiter may replace the slashes. If single quotes are used, no interpretation is done on the -replacement string (the C modifier overrides this, however). If -backquotes are used, the replacement string is a command to execute -whose output will be used as the actual replacement text. If the +replacement string (the C modifier overrides this, however). Unlike +Perl 4, Perl 5 treats backticks as normal delimiters; the replacement +text is not evaluated as a command. If the PATTERN is delimited by bracketing quotes, the REPLACEMENT has its own pair of quotes, which may or may not be bracketing quotes, e.g. C or CfooE/bar/>. A C will cause the @@ -1073,7 +1073,7 @@ returning FALSE. It you're trying to do variable interpolation, it's definitely better to use the glob() function, because the older notation can cause people -to become confused with the indirect filehandle notatin. +to become confused with the indirect filehandle notation. @files = glob("$dir/*.[ch]"); @files = glob($files[$i]);