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