programming-examples/perl/Hash/Create hash with arrow operator.pl

6 lines
118 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
%hash = (
fruit => apple,
sandwich => hamburger,
drink => bubbly,
);
print "$hash{fruit}\n";