How can I debug a Perl script? August 8, 2023 by Tarik perl -d your_script.pl args is how you debug Perl. It launches you into an interactive gdb-style command line debugger.