in reply to Re^4: An Interesting Gotcha With use/require
in thread An Interesting Gotcha With use/require

But in order to know an import is missing, Perl first needs to compile the module. However, if Perl compiles the module, the "subroutine redefined" warnings are being thrown.

You suggested check would have thrown another warning/error, but it wouldn't have eliminated the ones the OP was getting. I'm not sure that a warning "File::BaseName::import not found" would have been very helpful.

  • Comment on Re^5: An Interesting Gotcha With use/require