Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added language to specify the default values for C<:c>
  • Loading branch information
dha committed Jul 6, 2015
1 parent c33d70b commit eef0e62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Language/regexes.pod
Expand Up @@ -850,7 +850,9 @@ of an C<m/.../> match or as arguments to a match method.
The C<:continue> or short C<:c> adverb takes an argument. The argument is
the position where the regex should start to search. By default, it searches
from the start of the string, but C<:c> overrides that.
from the start of the string, but C<:c> overrides that. If no position is
specified for C<:c> it will default to C<0> unless C<$/> is set, in which
case it defaults to C<$/.to>.
given 'a1xa2' {
say ~m/a./; # a1
Expand Down

0 comments on commit eef0e62

Please sign in to comment.