in reply to Target filename of a symbolic link

I think 'readlink' is what you are looking for? Find it in perlfunc.

Replies are listed 'Best First'.
Re^2: Target filename of a symbolic link
by muntfish (Chaplain) on Sep 07, 2004 at 14:27 UTC

    Duh. Yes, readlink it is. Why didn't I see that? I'm sure I looked at every perlfunc entry with "link" in the name... Thank you.


    s^^unp(;75N=&9I<V@`ack(u,^;s|\(.+\`|"$`$'\"$&\"\)"|ee;/m.+h/&&print$&
      On *nix, perldoc perlfunc | less (or with the appropriate $PAGER setup), and search for link.

      On Win*, if you don't have a useful pager, it's a bit harder...try loading the HTML page and searching that.

      Regardless, there is always perldoc.com: the perlfunc page, or search for perlfunc, or search for link.

      -QM
      --
      Quantum Mechanics: The dreams stuff is made of