http://www.perlmonks.org?node_id=1083605


in reply to Messing with %INC.

I think the reason they say 'don't mess with %INC' is more because of redefining subroutines on the fly. Why do you want to do this?

It's a source of some potentially substantial pain, bugs and exploits. If I were really desperate to try something like this, I might be inclined to define anonymous subs - get some code, wrap in an eval, make an anonymous sub and pass it around by reference.