diff options
author | Karl Williamson <public@khwilliamson.com> | 2010-12-26 10:28:31 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-01-16 16:36:43 -0700 |
commit | 6320bfaf4787405fb1f70bb58ed6d1b362d2fba3 (patch) | |
tree | 97e50a1e074099647b2a40b41f4d74d7ba6265a3 /ext/re/re.pm | |
parent | cff62b63280c907ff3ba3e1586d3ea5539f0fa1e (diff) | |
download | perl-6320bfaf4787405fb1f70bb58ed6d1b362d2fba3.tar.gz |
.pm: rename variables to reflect expanded usage
Certain variables have /dul in their names. /a is about to be added;
and maybe more, so give a more generic name to avoid future confusion
Diffstat (limited to 'ext/re/re.pm')
-rw-r--r-- | ext/re/re.pm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/re/re.pm b/ext/re/re.pm index 13f2de6c19..886f0a2335 100644 --- a/ext/re/re.pm +++ b/ext/re/re.pm @@ -142,24 +142,24 @@ sub bits { re->export_to_level(2, 're', $s); } elsif ($s =~ s/^\///) { my $reflags = $^H{reflags} || 0; - my $seen_dul; + my $seen_charset; for(split//, $s) { if (/[dul]/) { if ($on) { - if ($seen_dul && $seen_dul ne $_) { + if ($seen_charset && $seen_charset ne $_) { require Carp; Carp::carp( - qq 'The "$seen_dul" and "$_" flags ' + qq 'The "$seen_charset" and "$_" flags ' .qq 'are exclusive' ); } - $^H{reflags_dul} = $reflags{$_}; - $seen_dul = $_; + $^H{reflags_charset} = $reflags{$_}; + $seen_charset = $_; } else { - delete $^H{reflags_dul} - if defined $^H{reflags_dul} - && $^H{reflags_dul} == $reflags{$_}; + delete $^H{reflags_charset} + if defined $^H{reflags_charset} + && $^H{reflags_charset} == $reflags{$_}; } } elsif (exists $reflags{$_}) { $on @@ -173,7 +173,7 @@ sub bits { next ARG; } } - ($^H{reflags} = $reflags or defined $^H{reflags_dul}) + ($^H{reflags} = $reflags or defined $^H{reflags_charset}) ? $^H |= $flags_hint : ($^H &= ~$flags_hint); } else { |