summaryrefslogtreecommitdiff
path: root/pod/perlre.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-06-13 19:17:50 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-06-13 19:17:50 +0000
commitf02c194e1a40f11d020685cd18b41e5261091b12 (patch)
tree37863ea19d4769893b861e11cb30b0215621246d /pod/perlre.pod
parentcff1be36840a17022b50a6f295ed97efe19b975e (diff)
downloadperl-f02c194e1a40f11d020685cd18b41e5261091b12.tar.gz
Remove the deprecated $* variable.
Incidentally, this fixes bug #22354, about unwanted action-at-distance of the /m regexp modifier. Add a new warning to advertise this fact. p4raw-id: //depot/perl@19769
Diffstat (limited to 'pod/perlre.pod')
-rw-r--r--pod/perlre.pod12
1 files changed, 3 insertions, 9 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod
index 17a94252cf..a11e3e833b 100644
--- a/pod/perlre.pod
+++ b/pod/perlre.pod
@@ -41,11 +41,7 @@ line anywhere within the string.
Treat string as single line. That is, change "." to match any character
whatsoever, even a newline, which normally it would not match.
-The C</s> and C</m> modifiers both override the C<$*> setting. That
-is, no matter what C<$*> contains, C</s> without C</m> will force
-"^" to match only at the beginning of the string and "$" to match
-only at the end (or just before a newline at the end) of the string.
-Together, as /ms, they let the "." match any character whatsoever,
+Used together, as /ms, they let the "." match any character whatsoever,
while still allowing "^" and "$" to match, respectively, just after
and just before newlines within the string.
@@ -103,13 +99,11 @@ string as a multi-line buffer, such that the "^" will match after any
newline within the string, and "$" will match before any newline. At the
cost of a little more overhead, you can do this by using the /m modifier
on the pattern match operator. (Older programs did this by setting C<$*>,
-but this practice is now deprecated.)
+but this practice has been removed in perl 5.9.)
To simplify multi-line substitutions, the "." character never matches a
newline unless you use the C</s> modifier, which in effect tells Perl to pretend
-the string is a single line--even if it isn't. The C</s> modifier also
-overrides the setting of C<$*>, in case you have some (badly behaved) older
-code that sets it in another module.
+the string is a single line--even if it isn't.
The following standard quantifiers are recognized: