Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Adding directories to the end of @INC

by mykl (Monk)
on Jul 01, 2011 at 10:33 UTC ( [id://912325] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        # remove trailing duplicates
        ## @INC = grep { ++$names{$_} == 1 } @INC;
        # remove leading duplicates
        @INC = reverse grep { ++$names{$_} == 1 } reverse @INC;