in reply to perl debugging problem

There's no simulation mode. The alternative to running the script is - reading it.