when a module is loaded at runtime behind the scenes.
p4raw-id: //depot/perl@18648
}
{
line_t ocopline = PL_copline;
+ line_t ocopline2 = PL_curcop->cop_line;
int oexpect = PL_expect;
utilize(!(flags & PERL_LOADMOD_DENY), start_subparse(FALSE, 0),
veop, modname, imop);
PL_expect = oexpect;
PL_copline = ocopline;
+ PL_curcop->cop_line = ocopline2;
}
}
close F;
END { 1 while unlink "bb" } # KEEP THIS WITH THE LAST TEST.
EXPECT
-perlio: unknown layer "xyz".
+perlio: unknown layer "xyz" at - line 5.