Skip to content

Commit

Permalink
we only install stubs now, so defined won't work
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Oct 24, 2013
1 parent 9ebb5e9 commit cfe5b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mop/internals/util.pm
Expand Up @@ -16,7 +16,7 @@ my %OVERRIDDEN;
sub install_sub {
my ($to, $from, $sub) = @_;
no strict 'refs';
if (defined &{ "${to}::${sub}" }) {
if (*{ "${to}::${sub}" }) {
push @{ $OVERRIDDEN{$to}{$sub} //= [] }, \&{ "${to}::${sub}" };
}
no warnings 'redefine';
Expand Down

0 comments on commit cfe5b96

Please sign in to comment.