title: perl: how to check if url link is not 404
body: <p>I was wondering how to check url link in perl? I want to know if it is invalid link.</p>
  
  <p>Also, I would like to know how to authenticate with username and password when checking url links. </p>