Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Adding directories to the end of @INC

by mykl (Monk)
on Jul 01, 2011 at 10:33 UTC ( #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;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://912325]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2023-12-05 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (25 votes). Check out past polls.

    Notices?