diff options
author | Yves Orton <demerphq@gmail.com> | 2006-11-11 17:25:17 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-11-13 10:13:52 +0000 |
commit | 0d520e8e301fa0eda31a3f68440e7e9b426a290f (patch) | |
tree | 054ca1bd4e065c43d65df20c96e6cc6de499fd18 | |
parent | cf9788e3f156bd3a508df18f86e6319103621d64 (diff) | |
download | perl-0d520e8e301fa0eda31a3f68440e7e9b426a290f.tar.gz |
Re: [perl #27053] /^/m doesn't match after a newline at the end of the string
Message-ID: <9b18b3110611110725t3dc1e447v751ef5880363aa9b@mail.gmail.com>
p4raw-id: //depot/perl@29257
-rw-r--r-- | pod/perlre.pod | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod index 45e41e5f54..fcf3d510e5 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -110,7 +110,8 @@ newline at the end), and Perl does certain optimizations with the assumption that the string contains only one line. Embedded newlines will not be matched by "^" or "$". You may, however, wish to treat a 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 +newline within the string (except if the newline is the last character in +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 has been removed in perl 5.9.) |