Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Printing path to @INC

by converter (Priest)
on May 02, 2002 at 14:56 UTC ( #163552=note: print w/ replies, xml ) Need Help??


in reply to Printing path to @INC

print "$_<BR>" for sort @INC;

Note: The paths listed in @INC are searched left-to-right, so it might be a good idea to leave it unsorted if you're using the output to analyze a problem with your code.

It just occurred to me that I may have misunderstood your request. If you'd like to print both keys and values from %INC (%INC and @INC are two distinct variables), you could use:

print "$_: $INC{$_}<BR>" for sort keys %INC;


Comment on Re: Printing path to @INC
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-07-13 21:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (252 votes), past polls