Lines Matching full:inc
30 my $lib_file = $INC{"lib.pm"};
88 our @ORIG_INC = @INC; # take a handy copy of 'original' value
106 unshift(@INC, $path);
111 unshift(@INC, $dir) if -d $dir;
117 unshift(@INC, $arch_dir) if -d $arch_auto_dir;
118 unshift(@INC, $version_dir) if -d $version_dir;
119 unshift(@INC, $version_arch_dir) if -d $version_arch_dir;
123 @INC = grep { ++$names{$_} == 1 } @INC;
142 @INC = grep { !exists $names{$_} } @INC;
163 lib - manipulate @INC at compile time
173 This is a small simple module which simplifies the manipulation of @INC
180 =head2 Adding directories to @INC
189 BEGIN { unshift(@INC, LIST) }
194 architecture specific directory and is added to @INC in front of $dir.
196 exist and adds these directories to @INC.
206 To avoid memory leaks, all trailing duplicate entries in @INC are
209 =head2 Deleting directories from @INC
211 You should normally only add directories to @INC. If you need to
212 delete directories from @INC take care to only delete those which you
218 from @INC.
223 architecture specific directory and is also deleted from @INC. lib.pm also
225 exist and deletes these directories from @INC.
227 =head2 Restoring original @INC
229 When the lib module is first loaded it records the current value of @INC
230 in an array C<@lib::ORIG_INC>. To restore @INC to that value you
233 @INC = @lib::ORIG_INC;
242 # their @INC would write
250 before being added to @INC).
252 If you try to add a file to @INC as follows: