You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
programming-examples/perl/Hash/Using each to get key and v...

7 lines
123 B
Perl

$hash2{A} = F;
$hash2{B} = E;
$hash2{'C'} = D;
while(($key, $value) = each(%hash)) {
print "$key => $value\n";
}