Recipe 5.8. Hashes with Multiple Values per Key
5.8.1. Problem
You want to store more than one value for
each key.
5.8.2. Solution
Store an array reference in $hash{$key}, then put
the values into the referenced array.
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial