http://qs321.pair.com?node_id=1059306


in reply to Should -f test return true for symlinks ? [RESOLVED]

I agree that the Perl document does not explicitly state the behavior in this case. But, you could test if it is both a file and a link:
$ perl -e 'printf "%d%d%d%d%d\n", -f "file", -f "link", -l "file", -l +"link", -f "link" and -l "link"' 11011

Caution: I haven't tested all the combos of files/dirs/links, etc.