sub unimport {
my ($class, @unsteal_classes) = @_;
foreach my $unsteal (@unsteal_classes) {
+ (my $pm_file = $unsteal) =~ s/::/\//g;
if (exists $saved_inc{$unsteal}) {
- (my $pm_file = $unsteal) =~ s/::/\//g;
$INC{"${pm_file}.pm"} = delete $saved_inc{$unsteal};
+ } else {
+ delete $INC{"${pm_file}.pm"};
}
if (defined $saved_import{$unsteal}) {
{