|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Symbolic Linksby grinder (Bishop) |
| on Aug 02, 2001 at 20:39 UTC ( #101710=note: print w/ replies, xml ) | Need Help?? |
|
You want to investigate the readlink function. my $dir = readlink( '/some/directory' );If you have symbolic links pointing to other symbolic links you will have to walk down the chain:
or more concise: 1 while( -l $dir and $dir=readlink($dir))-- g r i n d e r
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||