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


in reply to File::Find and remove invalid symlinks question

They give different results when I test them on a debian with perl v5.28. I have link2 -> link1 and link1 -> my_file (where my_file doesn't exist). The first version only returns link1, while the second also includes link2.

With a dangling link "a link whose target does not exist", whether the first result is expected depends on your definition of "exist" :)