This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #112604] perlre man page contains suspect example of recursion
authorRonald J Kimball <rjk@tamias.net>
Thu, 24 May 2012 01:17:16 +0000 (18:17 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 24 May 2012 01:18:05 +0000 (18:18 -0700)
commitc77257ed0e74a0f687e15e3114b395bb273c5b2f
treecea58bb49e213380913c3a451d453a43a3a77d67
parent1e4aa4a587074e54fbb78449b8d9262e220217ca
[perl #112604] perlre man page contains suspect example of recursion

Jim Avera wrote:
> This seems incorrect because the \s++ eats all white space without
> backtracking, preventing the following \s+ from matching.
> Thus the pattern always fails for any input.

It should be \s+ \+ \s+
pod/perlre.pod