use warnings::register;
use vars qw($VERSION %declared);
-$VERSION = '1.18';
+$VERSION = '1.19';
#=======================================================================
my $constants;
my $multiple = ref $_[0];
my $pkg = caller;
+ my $done_mro;
my $symtab;
if (_CAN_PCS) {
# constants from cv_const_sv are read only. So we have to:
Internals::SvREADONLY($scalar, 1);
$symtab->{$name} = \$scalar;
- mro::method_changed_in($pkg);
+ # No need to flush the cache if we've just flushed it.
+ mro::method_changed_in($pkg) unless $done_mro++;
} else {
*$full_name = sub () { $scalar };
}