If you have symbolic links pointing to other symbolic links you will have to walk down the chain:
while( -l $dir ) { $dir = readlink $dir }
or more concise:
1 while( -l $dir and $dir=readlink($dir))--
In reply to Re: Symbolic Links
by grinder
in thread Symbolic Links
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |