Is there a way to turn on tracing in perl (equivalent to bash -x)?

前端 未结 4 1457
滥情空心
滥情空心 2020-12-30 18:54

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?

EDIT: What bash -x

4条回答
  •  感动是毒
    2020-12-30 19:37

    You should look at "perl -d" (turn on debugger) or "perl -c" (check your script before executing

提交回复
热议问题