in reply to Check for whether File is Dangling Symlink
You can use readlink to get the file pointed to and test that.
print "link is good" if (-e readlink($linkname));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Check for whether File is Dangling Symlink
by cynba (Initiate) on Oct 05, 2010 at 20:42 UTC |