develooper Front page | perl.beginners | Postings from April 2010

Re: get path to linked directory

Thread Previous | Thread Next
From:
Shawn H Corey
Date:
April 27, 2010 06:02
Subject:
Re: get path to linked directory
Message ID:
4BD6E03D.9070401@gmail.com
Andreas Moroder wrote:
> Hello,
> 
> I have a entry in my directory that is a soft-link to another directory.
> Is there a way in perl to get, starting from the link, the path of the 
> real directory ?
> 
> Thanks
> Andreas
> 
> 

See:
perldoc -f readlink  http://perldoc.perl.org/functions/readlink.html
perldoc -f symlink   http://perldoc.perl.org/functions/symlink.html
perldoc perlfunc and search for /-l  File is a symbolic link/ 
http://perldoc.perl.org/perlfunc.html#Alphabetical-Listing-of-Perl-Functions


-- 
Just my 0.00000002 million dollars worth,
   Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

Eliminate software piracy:  use only FLOSS.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About