How can I debug a Perl script?

前端 未结 8 1531
天涯浪人
天涯浪人 2021-02-01 16:47

When I run a Perl script, how can I debug it? For example, in ksh I add the -x flag. But how I do the same in Perl?

8条回答
  •  你的背包
    2021-02-01 17:13

    Note that the Perldebugger can also be invoked from the scripts shebang line, which is how I mostly use the -x flag you refer to, to debug shell scripts.

    #! /usr/bin/perl -d

提交回复
热议问题