From: Jesse Luehrs Date: Tue, 3 Apr 2012 21:42:36 +0000 (-0500) Subject: typo fix X-Git-Tag: 2.0501~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=252ced44da003c1d299a0baed33de3e389328a57;p=gitmo%2FMoose.git typo fix --- diff --git a/Changes b/Changes index a9669fe..cb07fa1 100644 --- a/Changes +++ b/Changes @@ -3,6 +3,10 @@ for, noteworthy changes. {{$NEXT}} + [BUG FIXES] + + * Avoid syntax errors on pre-5.14. (doy) + 2.0500 Tue, Apr 03, 2012 [NEW FEATURES] diff --git a/lib/Class/MOP/Mixin/HasMethods.pm b/lib/Class/MOP/Mixin/HasMethods.pm index c2e870a..9e2fe0d 100644 --- a/lib/Class/MOP/Mixin/HasMethods.pm +++ b/lib/Class/MOP/Mixin/HasMethods.pm @@ -235,13 +235,13 @@ sub _overload_map { sub get_overload_list { my $self = shift; - return keys $self->_overload_map; + return keys %{ $self->_overload_map }; } sub get_all_overloaded_operators { my $self = shift; my $map = $self->_overload_map; - return map { $self->_wrap_overload($_, $map->{$_}) } keys $map; + return map { $self->_wrap_overload($_, $map->{$_}) } keys %$map; } sub has_overloaded_operator {