programming-examples/perl/Hash/Use hash as an array.pl
2019-11-15 12:59:38 +01:00

5 lines
100 B
Perl

$hash{fruit} = apple;
$hash{sandwich} = hamburger;
$hash{drink} = bubbly;
print "@{[%hash]}\n";