programming-examples/perl/Hash/Using each function with hash reference.pl
2019-11-15 12:59:38 +01:00

10 lines
168 B
Perl

$hashref = {
fruit => apple,
sandwich => hamburger,
drink => bubbly,
};
while(($key, $value) = each(%$hashref)) {
print "$key => $value\n";
}