Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: File::Find and remove invalid symlinks question

by redtux (Sexton)
on Jul 22, 2020 at 09:55 UTC ( [id://11119631]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11119631]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-25 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found