Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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;
    

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 sharing their wisdom with the Monastery: (4)
As of 2025-03-25 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (67 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.