Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[S05] be a bit more precise in :nth wording
  • Loading branch information
moritz committed Feb 20, 2012
1 parent 96bd7e5 commit 208eabf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S05-regex.pod
Expand Up @@ -508,8 +508,8 @@ which is the same as:
m/(\d+)/ && m:c/(\d+)/ && s:c/(\d+)/@data[$0]/;

The argument to C<:nth> is allowed to be a list of integers, but such a list
should be monotonically increasing. (Values which are less than or equal to the previous
value will be ignored.) So:
should be monotonically increasing. (Values which are less than or equal to
any previous value will be ignored.) So:


:nth(2,4,6...*) # return only even matches
Expand Down

0 comments on commit 208eabf

Please sign in to comment.