in reply to Re: Changing @INC path detail
in thread Changing @INC path detail

You have to take care that you fold that into a BEGIN block, because use is evaluated at compile time.

If you have a script like this:

# modify @INC use Some::Module;
the use is evaluated before the # modify @ING line.

You see, it's not as easy at it looks, which is why use lib $path; is recommended. (It checks for duplicate entries in @INC as well, which is another advantage).