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 slice? How does a slice affect the original list?
A1: A slice is some subset of the elements in an array or hash. Slices do not affect the original list; they copy the sliced elements into the new list. Compare with elements extracted using splice, where the original array or list is permanently changed.
2:What are the $a and $b variables used for in sort routines?
A2: The $a and $b variables in a sort routine are local to that routine and refer to two list elements ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.