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.
In reply to Re: Messing with %INC.
by Preceptor
in thread Messing with %INC.
by Theodore
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |