Skip to content

Commit

Permalink
perllocale.pod: clarify tainting of $1 et al
Browse files Browse the repository at this point in the history
[perl #120675]

The docs weren't clear that *any* locale info used in a regex taints *all*
of $1, $2,...
  • Loading branch information
iabyn committed Dec 4, 2013
1 parent 29da91a commit 9fc477b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pod/perllocale.pod
Expand Up @@ -926,7 +926,7 @@ B<Matching operator> (C<m//>):

Scalar true/false result never tainted.

Subpatterns, either delivered as a list-context result or as $1 etc.
All subpatterns, either delivered as a list-context result or as $1 etc.
are tainted if C<use locale> (but not S<C<use locale ':not_characters'>>)
is in effect, and the subpattern regular
expression contains C<\w> (to match an alphanumeric character), C<\W>
Expand Down

0 comments on commit 9fc477b

Please sign in to comment.