You could replace @INC with a single code ref that rejects attempts to require certain packages, otherwise it searches @INC itself. Note that this answer demonstrates that I know that you can put a code ref into @INC but that I don't know if such code refs can prevent subsequent entries from being search or if you can temporarilly override @INC and re-require within the ref'd code.
- tye
In reply to Re: Breaking XS for testing? (@INC code ref)
by tye
in thread Breaking XS for testing?
by xdg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |