title: Is there a way to turn on tracing in perl (equivalent to bash -x)?
body: <p>I have a system script in perl. I need some equivalent of bash -x to determine what is going wrong with the script. Is there something equivalent?</p>
  
  <p>EDIT: What bash -x does is that it prints each line as it is evaluated. This makes debugging code that is just missing some path variable or file very easy.</p>