X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlfaq6.pod;h=72c26092adcdbae51baa4ff043c4fbcd99b02823;hb=58103a2e295c15d87c7ce0bd8dd83d7e110adac4;hp=b778a580a0f4ba67145699e5a1168fb830cc3c74;hpb=d74e8afc9309529cf5c6c4390fc311850865d506;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlfaq6.pod b/pod/perlfaq6.pod index b778a58..72c2609 100644 --- a/pod/perlfaq6.pod +++ b/pod/perlfaq6.pod @@ -1,6 +1,6 @@ =head1 NAME -perlfaq6 - Regular Expressions ($Revision: 1.35 $, $Date: 2005/08/10 15:55:08 $) +perlfaq6 - Regular Expressions ($Revision: 1.38 $, $Date: 2005/12/31 00:54:37 $) =head1 DESCRIPTION @@ -873,9 +873,9 @@ a valid regular expression, trap the exception this way: if (eval { $line =~ /$pattern/ }) { } -If all you really want to search for a string, not a pattern, +If all you really want is to search for a string, not a pattern, then you should either use the index() function, which is made for -string searching, or if you can't be disabused of using a pattern +string searching, or, if you can't be disabused of using a pattern match on a non-pattern, then be sure to use C<\Q>...C<\E>, documented in L. @@ -889,7 +889,7 @@ in L. =head1 AUTHOR AND COPYRIGHT -Copyright (c) 1997-2005 Tom Christiansen, Nathan Torkington, and +Copyright (c) 1997-2006 Tom Christiansen, Nathan Torkington, and other authors as noted. All rights reserved. This documentation is free; you can redistribute it and/or modify it