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
If using an interactive debugger is OK for you, you can try perldebug.