Chapter 6. Hashes, References, and Complex Data Structures

This chapter completes your study of the basic Perl data types with an examination of associative arrays, better known as hashes. Unlike ordinary arrays, hashes enable you to use a string as an index rather than a number.

This chapter also covers references. A reference is similar to a C pointer in that it points to other data. (Actually, there are some differences between the two, but for now, you can consider them about the same.)

Finally, the chapter combines all the data structures along with your knowledge of references to create complex data structures. As you will see, nested ...

Get Perl for C Programmers 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.