in reply to Symbolic Links
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))--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Symbolic Links
by merlyn (Sage) on Aug 03, 2001 at 02:28 UTC |