in reply to Not able to remove path from @INC

Actually, I dont want to add anything . There are some default paths that @INC looking during run time . These paths are already removed . when I try to update the @INC using lib modules , it is throwing me a error like Config.pm is not available. any solutions please. Thanks in advance Brajen

Replies are listed 'Best First'.
Re^2: Not able to remove path from @INC
by Corion (Patriarch) on Jan 29, 2014 at 13:12 UTC

    You will need to show the relevant code that produces the problem.

    One easy way of producing what you seem to describe would be something like the following:

    BEGIN { @INC= (); }; use lib '/home/foo/perl-lib'; # will die with "module lib.pm not found +"

    My advice is to just not do that, or to review require, which allows runtime loading of files.