Day 4. Working with Lists and Arrays

Days 2 and 3 dealt primarily with individual things. Today, we'll talk about groups of things, namely, lists and arrays, and the various operations you can do to manage (and mangle) them, including

  • What arrays and lists are, and the variables for storing them

  • Defining and using arrays

  • List and scalar context, and why context is crucial to understanding Perl

  • More about <STDIN> and reading input into lists

  • Printing lists

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.