Chapter 9. List variables

9.1

Using array variables

296

9.2

Using hash variables

308

9.3

Comparing list generators in the Shell and Perl

325

9.4

Summary

328

By this point, you’ve learned how to use Perl’s most important built-in functions and the special techniques employed in scripts. So you’re nearly ready to start slinging around huge quantities of data and wrangling their values until you get what you’re after—like a professional data munger!

But first, you need to learn how to classify, store, and retrieve those copious amounts of data. This brings us to the topic of list variables.

The main property that distinguishes list variables from the scalar variables we’ve already discussed is how many distinct items of data each can hold. The limit for a scalar ...

Get Minimal Perl 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.