O'Reilly logo

Sams Teach Yourself Perl in 21 Days, Second Edition by Rafe Colburn, Laura Lemay

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required