![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re: Re: List of installed modulesby jynx (Priest) |
on Dec 29, 2000 at 01:01 UTC ( [id://48690]=note: print w/replies, xml ) | Need Help?? |
the code's already been posted, and the other solutions are obviously better, but i wanted to do more useless one-lining...
hmmm, there are probably subdirectories in @INC that we've already searched since it recursively goes through the directories. Which would be faster: a search through all the directories using find or a prune using a hash to not re-search directories we've been through? The following is untested (ok, so was the above code), but it's an example...
So the question i now have is would it be faster to make a hash or recurse possibly the same directories? i don't think this example is a significantly large enough search space to make much of a difference, but if it were would the latter method be faster? i think so but maybe someone can point out something i'm missing...
jynx
In Section
Seekers of Perl Wisdom
|
|