summaryrefslogtreecommitdiff
path: root/lib/overload.pm
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-01-16 09:32:09 -0800
committerFather Chrysostomos <sprout@cpan.org>2012-01-16 12:51:43 -0800
commite2a78392aa527d2b816d2b7f838b62bd5477f12a (patch)
treee0b7963699e7bd835dcdf22e5cbf33ef277cdab7 /lib/overload.pm
parent9d51dcee04c4fd5387333086cac218960f210622 (diff)
downloadperl-e2a78392aa527d2b816d2b7f838b62bd5477f12a.tar.gz
Suppress ‘useless’ warning in overload.pm
Diffstat (limited to 'lib/overload.pm')
-rw-r--r--lib/overload.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/overload.pm b/lib/overload.pm
index 8af28e547d..4892a31c4a 100644
--- a/lib/overload.pm
+++ b/lib/overload.pm
@@ -20,7 +20,7 @@ our $VERSION = '1.18';
special => 'nomethod fallback =',
);
-%ops_seen;
+my %ops_seen;
for $category (keys %ops) {
$ops_seen{$_}++ for (split /\s+/, $ops{$category});
}