Change 13810 by jhi@alpha on 2001/12/19 16:50:12

        Subject: Re: [BUG] bleadperl regexp (was ok in 5.6.0)
        From: Wolfgang Laun <[EMAIL PROTECTED]>
        Date: Wed, 19 Dec 2001 12:35:07 +0100
        Message-ID: <[EMAIL PROTECTED]>
        
        Subject: Re: [BUG] bleadperl regexp (was ok in 5.6.0)
        From: Hugo van der Sanden <[EMAIL PROTECTED]>
        Date: Wed, 19 Dec 2001 17:34:51 +0000
        Message-Id: <[EMAIL PROTECTED]>

Affected files ...

.... //depot/perl/pod/perlre.pod#71 edit

Differences ...

==== //depot/perl/pod/perlre.pod#71 (text) ====
Index: perl/pod/perlre.pod
--- perl/pod/perlre.pod.~1~     Wed Dec 19 10:00:05 2001
+++ perl/pod/perlre.pod Wed Dec 19 10:00:05 2001
@@ -458,12 +458,14 @@
 
 =item C<(?imsx-imsx)>
 
-One or more embedded pattern-match modifiers.  This is particularly
-useful for dynamic patterns, such as those read in from a configuration
-file, read in as an argument, are specified in a table somewhere,
-etc.  Consider the case that some of which want to be case sensitive
-and some do not.  The case insensitive ones need to include merely
-C<(?i)> at the front of the pattern.  For example:
+One or more embedded pattern-match modifiers, to be turned on (or
+turned off, if preceded by C<->) for the remainder of the pattern or
+the remainder of the enclosing pattern group (if any). This is
+particularly useful for dynamic patterns, such as those read in from a
+configuration file, read in as an argument, are specified in a table
+somewhere, etc.  Consider the case that some of which want to be case
+sensitive and some do not.  The case insensitive ones need to include
+merely C<(?i)> at the front of the pattern.  For example:
 
     $pattern = "foobar";
     if ( /$pattern/i ) { } 
@@ -473,8 +475,7 @@
     $pattern = "(?i)foobar";
     if ( /$pattern/ ) { } 
 
-Letters after a C<-> turn those modifiers off.  These modifiers are
-localized inside an enclosing group (if any).  For example,
+These modifiers are restored at the end of the enclosing group. For example,
 
     ( (?i) blah ) \s+ \1
 
End of Patch.

Reply via email to