Pardon the not-very-useful wild guess, but wasn't there a nice example program in some old Camel Book that would print out an output like
in reply to Re: resolving symbolic links in a pathname
in thread resolving symbolic links in a pathname
as it progressively resolved the symlinks in higher and higher components of a path?
I thought it might have been one of those abandoned items in the Perl source eg/ directory, but I couldn't find it there, so the Camel Book was my next guess.
Addendum: This looks kinda interesting too.