diff options
author | Perl 5 Porters <perl5-porters@africa.nicoh.com> | 1996-06-17 06:21:12 +0000 |
---|---|---|
committer | Charles Bailey <bailey@genetics.upenn.edu> | 1996-06-17 06:21:12 +0000 |
commit | e37d713d85ec003d03d192586753cfcbbe6157c5 (patch) | |
tree | 1270f2cb2ee6bb5eb86044484e4d8c66bfe4f9e3 | |
parent | a2bdc9a53b6d7221bdf979c28003d54de36d16e5 (diff) | |
download | perl-e37d713d85ec003d03d192586753cfcbbe6157c5.tar.gz |
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
-rw-r--r-- | pod/perlop.pod | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod index 483a686ebb..91cee46fbd 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</e> 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</e> 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<s(foo)(bar)> or C<sE<lt>fooE<gt>/bar/>. A C</e> 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]); |