Skip Menu |

This queue is for tickets about the Test-Without-Module CPAN distribution.

Report information
The Basics
Id: 120223
Status: resolved
Priority: 0/
Queue: Test-Without-Module

People
Owner: Nobody in particular
Requestors: haarg [...] haarg.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: @INC hook should die directly
Rather than generating a fake file with a die inside it, the @INC hook used should just die directly. This is both simpler and a closer match to perl's own behavior when it can't find a file. This is especially true on perl 5.8, where after a failure to load a missing module, the %INC entry should not exist. Generating a fake file like this module does leaves the apparent file entry in %INC, and later attempts to load the file will appear to succeed. Here is a demonstration of the differences: https://gist.github.com/haarg/c55c702c08fc59a8d61b1265f1c07353
Thanks to the CPAN PRC, this is now implemented and on its way onto CPAN in version 0.19 Am Mo 13. Feb 2017, 02:07:25, haarg schrieb: Show quoted text
> Rather than generating a fake file with a die inside it, the @INC hook > used should just die directly. This is both simpler and a closer match > to perl's own behavior when it can't find a file. This is especially > true on perl 5.8, where after a failure to load a missing module, the > %INC entry should not exist. Generating a fake file like this module > does leaves the apparent file entry in %INC, and later attempts to > load the file will appear to succeed. > > Here is a demonstration of the differences: > https://gist.github.com/haarg/c55c702c08fc59a8d61b1265f1c07353