programming-examples/perl/Hash/Hash of list.pl
2019-11-15 12:59:38 +01:00

6 lines
134 B
Perl

%hash_of_lists = (
List_1 => [1, 2, 3],
List_2 => ["Red", "Yellow", "Blue"],
);
print "$hash_of_lists{List_1}[1]", "\n";