http://qs321.pair.com?node_id=340848


in reply to newbie question:operation @INC

What do you mean 'after script running, I use "perl -V"'?

@INC is local to the script. It doesn't affect the parent, nor is a modified @INC automatically inherited to a child process.

If you need to modify @INC for a script that you do not wish to alter, try setting the environment variable PERL5LIB. See "perlrun" for more information.