David Garamond wrote:

> Btw, this is not really reliable (i.e. always correct) right? Since $: 
> might have been manipulated in between. Also the code above did not 
> check the case when a file is required by absolute path.

True.

Fortunately, for my purpose, it was perfect.  I was really more interested in being able to find the source code to a given library module.

Of course, given what you say, very occasionally, I won't be looking at the right piece of code, but I can live with that :-).

Cheers,