Workshop

The workshop provides quiz questions to help you solidify your understanding of the material covered and exercises to give you experience in using what you've learned. Try and understand the quiz and exercise answers before you go on to tomorrow's lesson.

Quiz

1:What is a debugger for? Why is it more useful than, say, -w or print?
A1: The -w command in Perl is there to help you fix (or avoid) syntax mistakes or poor-coding practices. The Perl debugger is there to help you with all other problems: arrays not getting built or not getting printed, values not getting matched, script logic not running the way you expect it to. Using print statements will produce some of the same effect, but it'll take longer and often be more difficult to ...

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.