Steffen Mueller schrieb:
Any ideas why this is happening?

Yes. This has taken me the best part of the day to figure out. But we are suffering from a problem in AutoLoader.pm which is part of the core. A minimal test is attached. A patch will be heading in the direction of the core, too.

I might dual-life AutoLoader to fix this for current perls or PAR might override AutoLoader::AUTOLOAD. But I'd rather not...

Steffen

---------

package Bar;
use AutoLoader 'AUTOLOAD';
sub new {
    return bless {} => $_[0];
}

package main;

$INC{"Bar.pm"} = $0; # <-- This is the key
{
        my $p = Bar->new();
} # <--- here, Bar::Destroy is searched by AutoLoader. It require()s Foo.pm ==> loop

Reply via email to