programming-examples/perl/Hash/Hash of list.pl

6 lines
134 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
%hash_of_lists = (
List_1 => [1, 2, 3],
List_2 => ["Red", "Yellow", "Blue"],
);
print "$hash_of_lists{List_1}[1]", "\n";