Using map with hash : map « Hash « Perl






Using map with hash

    

$hash{fruit} = apple;
$hash{sandwich} = hamburger;
$hash{drink} = bubbly;

print map "$_ => $hash{$_}\n", keys %hash;

   
    
    
    
  








Related examples in the same category

1.Working join with map