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