in reply to Re^2: File::Find and remove invalid symlinks question
in thread File::Find and remove invalid symlinks question

Thanks for all the replies

I think the difference between 1 and 2 is the behaviour when the link target is itself a symlink, for my use case this doesn't matter, because there will not be any links to links

Adding _ to if (-l && !-e) makes the script return zero records. I belive this is because File::Find already does this, so it is in essence (-l $_ && !-e __)

  • Comment on Re^3: File::Find and remove invalid symlinks question