fork(1) download
  1. use strict;
  2.  
  3. my %big = (A => '1', B => '2', C => '3', D => '4', E => '5');
  4. my %small = (A => '0', B => '0', C => '0');
  5.  
  6. %small = map { $_, $big{$_} } keys %small;
  7.  
  8. print join ', ', %small;
Success #stdin #stdout 0s 4596KB
stdin
Standard input is empty
stdout
A, 1, C, 3, B, 2