return map {
(ref($namespace->{$_})
? ( $_ => \&{$pkg ||= $self->name . "::$_"} )
- : ( *{$namespace->{$_}}{CODE}
- ? ( $_ => *{$namespace->{$_}}{$type_filter} )
- : ()))
+ : ( (*{$namespace->{$_}}{CODE}) # the extra parents prevent breakage on 5.8.2
+ ? ( $_ => *{$namespace->{$_}}{CODE} )
+ : () ) )
} keys %$namespace;
} else {
return map {