Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: resolving symbolic links in a pathname

by merlyn (Sage)
on Nov 23, 2007 at 01:25 UTC ( #652468=note: print w/replies, xml ) Need Help??

in reply to resolving symbolic links in a pathname

I think you want abs_path in Cwd.

Replies are listed 'Best First'.
Re^2: resolving symbolic links in a pathname
by Dominus (Parson) on Nov 23, 2007 at 03:20 UTC
    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
    /home/mjd/foo.c /home/mjd/bar/baz/foo.c /home/mjd/bar-1.0/baz/foo.c /userhomes/m/j/mjd/bar-1.0/baz/foo.c /mnt/homevol/m/j/mjd/bar-1.0/baz/foo.c
    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.

      Yeah, in the pink Camel Book. I posted it here some time ago: Re: Following symlinks manually (historical code)



      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
Re^2: resolving symbolic links in a pathname
by PerlDisciple (Novice) on Nov 23, 2007 at 03:24 UTC
    Thanks Randal.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2022-05-17 00:55 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (65 votes). Check out past polls.