diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-01-03 14:10:04 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-01-03 14:10:04 +0000 |
commit | 58103a2e295c15d87c7ce0bd8dd83d7e110adac4 (patch) | |
tree | d8c206aa6ca06a6663cfd0e689e46d4b580ebf89 /pod/perlfaq6.pod | |
parent | 36c7798d7abbe7dd4517943c1b5755ab4f2dda73 (diff) | |
download | perl-58103a2e295c15d87c7ce0bd8dd83d7e110adac4.tar.gz |
Sync perlfaq.
p4raw-id: //depot/perl@26601
Diffstat (limited to 'pod/perlfaq6.pod')
-rw-r--r-- | pod/perlfaq6.pod | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pod/perlfaq6.pod b/pod/perlfaq6.pod index 3cfeadf45d..72c26092ad 100644 --- a/pod/perlfaq6.pod +++ b/pod/perlfaq6.pod @@ -1,6 +1,6 @@ =head1 NAME -perlfaq6 - Regular Expressions ($Revision: 1.36 $, $Date: 2005/10/13 19:49:13 $) +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<perlre>. @@ -889,7 +889,7 @@ in L<perlre>. =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 |