in reply to Re^4: What's the deal with ExtUtils::MakeMaker [build_requires]
in thread What's the deal with ExtUtils::MakeMaker [build_requires]
This loop hangs with $file eq '..' and $last eq 'dummy-install'. This code doesn't check was the regexp substitution successful, and if not, uses $1 from the last time. Change this line to:sub get_dir_list { my ($him,@files) = @_; my %alldirs; for my $file (@files) { $file =~ s|/[^/]+$||; while (-d $file) { $file =~ s|/([^/]+)$||; my $last = $1;
and t/INSTALL_BASE.t will pass the test in a couple of seconds.$file =~ s|/([^/]+)$|| or last;
|
|---|