In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/81a5ff157a0f5e961a89ba2b873dd463cf2df856?hp=9a3b7d400b61d27547fadf88b26be08e452e85bb>
- Log ----------------------------------------------------------------- commit 81a5ff157a0f5e961a89ba2b873dd463cf2df856 Author: Father Chrysostomos <[email protected]> Date: Thu Mar 10 16:47:04 2011 -0800 Correct the U<...> link in perlfaq4 M pod/perlfaq4.pod commit a0257f917eba04f7a03638f3ea7cc3caa3965537 Merge: f917991 9a3b7d4 Author: Father Chrysostomos <[email protected]> Date: Thu Mar 10 16:41:39 2011 -0800 Merge branch 'blead' of ssh://perl5.git.perl.org/gitroot/perl into blead commit f9179917601f7b47b235028eaa383004b12892d7 Author: Father Chrysostomos <[email protected]> Date: Wed Mar 9 17:47:33 2011 -0800 perlfunc/pos: Mention the zero-len flag M pod/perlfunc.pod ----------------------------------------------------------------------- Summary of changes: pod/perlfaq4.pod | 2 +- pod/perlfunc.pod | 3 +++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/pod/perlfaq4.pod b/pod/perlfaq4.pod index 2e7beb3..eb18743 100644 --- a/pod/perlfaq4.pod +++ b/pod/perlfaq4.pod @@ -13,7 +13,7 @@ numbers, dates, strings, arrays, hashes, and miscellaneous data issues. For the long explanation, see David Goldberg's "What Every Computer Scientist Should Know About Floating-Point Arithmetic" -(U<http://web.cse.msu.edu/~cse320/Documents/FloatingPoint.pdf>). +(L<http://web.cse.msu.edu/~cse320/Documents/FloatingPoint.pdf>). Internally, your computer represents floating-point numbers in binary. Digital (as in powers of two) computers cannot store all numbers diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 92e60ab..0185762 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -4405,6 +4405,9 @@ expressions. Both of these effects take place for the next match, so you can't affect the position with C<pos> during the current match, such as in C<(?{pos() = 5})> or C<s//pos() = 5/e>. +Setting C<pos> also resets the I<matched with zero-length> flag, described +under L<perlre/"Repeated Patterns Matching a Zero-length Substring">. + Because a failed C<m//gc> match doesn't reset the offset, the return from C<pos> won't change either in this case. See L<perlre> and L<perlop>. -- Perl5 Master Repository
