How do I loop through a reference to an array?
I have the following data structure:
my %facets = (
'audiences' => [('freshman', 'senior')],
'subjects' => [('music', 'history')],
'tools' => [('dictionaries', 'catalogs')]
);
I can use this code to get the keys for %facets:
foreach my $key (sort(keys(%facets))) { print $key, "\n" }
But since $key points to the reference of an array, I don't know how
to loop through the referenced array.
--
Eric Lease Morgan
Head, Digital Access and Information Architecture Department
University Libraries of Notre Dame
(574) 631-8604