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?
-x
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