s_islnk#
True if a stat-mode value names a symbolic link.
Synopsis#
my $mode = (lstat $path)[2];
print "symlink\n" if S_ISLNK($mode);
Returns 1 when $mode & S_IFMT == S_IFLNK, 0 otherwise. With
no argument, returns 0. Use lstat rather than stat: plain
stat follows symlinks and reports the target’s mode.