diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-11-23 11:39:00 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-11-23 11:39:00 +0000 |
commit | c195e131167b24ce65760dbc38d744bc87427feb (patch) | |
tree | 0551d6f7dcc3047c8f0eb648a5a73ebce094a22f /pod/perlfaq6.pod | |
parent | d0344c4ee20d4d3bcccab25592af08a69faed492 (diff) | |
download | perl-c195e131167b24ce65760dbc38d744bc87427feb.tar.gz |
FAQ sync
p4raw-id: //depot/perl@32464
Diffstat (limited to 'pod/perlfaq6.pod')
-rw-r--r-- | pod/perlfaq6.pod | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pod/perlfaq6.pod b/pod/perlfaq6.pod index 90edc7b5ea..6bf1428fb5 100644 --- a/pod/perlfaq6.pod +++ b/pod/perlfaq6.pod @@ -1,6 +1,6 @@ =head1 NAME -perlfaq6 - Regular Expressions ($Revision: 8539 $) +perlfaq6 - Regular Expressions ($Revision: 10126 $) =head1 DESCRIPTION @@ -153,9 +153,8 @@ Here's another example of using C<..>: X<$/, regexes in> X<$INPUT_RECORD_SEPARATOR, regexes in> X<$RS, regexes in> -Up to Perl 5.8.0, $/ has to be a string. This may change in 5.10, -but don't get your hopes up. Until then, you can use these examples -if you really need to do this. +$/ has to be a string. You can use these examples if you really need to +do this. If you have File::Stream, this is easy. @@ -606,7 +605,7 @@ but faster. { foreach $pattern ( @patterns ) { - print if /\b$pattern\b/i; + print if /$pattern/i; next LINE; } } @@ -984,9 +983,9 @@ Or... =head1 REVISION -Revision: $Revision: 8539 $ +Revision: $Revision: 10126 $ -Date: $Date: 2007-01-11 00:07:14 +0100 (Thu, 11 Jan 2007) $ +Date: $Date: 2007-10-27 21:29:20 +0200 (Sat, 27 Oct 2007) $ See L<perlfaq> for source control details and availability. |