```{index} single: s_islnk; Fcntl function ``` ```{index} single: Fcntl::s_islnk; Perl function ``` # s_islnk True if a stat-mode value names a symbolic link. ## Synopsis ```perl 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.