I have a Perl program written by someone else. When I run it, it silently exits without writing anything to the logfile. Is there a way I can run this Perl program step by step, line by line by the interpreter and thus get to see where it terminates?
Share
Yes, there is the Perl debugger which you can invoke with
perl -d.Documentation can be found in perldoc perldebug and perldoc perldebtut.
Probably the most useful commands would be: