Summary

Today you learned not so much about Perl itself, but about Perl's associated command-line debugger. You learned how to start and run the debugger, how to step through each line of your script, list the source, set breakpoints, trace the execution, and find out information about different parts of your script as they're running.

With the debugger there's few problems you can't figure out, and you can usually figure them out faster this way than trying to use print statements everywhere.

Get Sams Teach Yourself Perl in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.