go ahead... be a heretic | |
PerlMonks |
Re^3: File::Find and remove invalid symlinks questionby redtux (Sexton) |
on Jul 22, 2020 at 09:55 UTC ( [id://11119631]=note: print w/replies, xml ) | Need Help?? |
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 __)
In Section
Seekers of Perl Wisdom
|
|