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
Use Eclipse with EPIC: It gives you a nice IDE with debugging possibilities, including the ability to place breakpoints and the Perl Expression View for inspecting the value of variables.
Perl Expression View