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" :)
In reply to Re: File::Find and remove invalid symlinks question
by Eily
in thread File::Find and remove invalid symlinks question
by redtux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |