while(){ ($city,$num)=split; push( @{$myhash{$city}}, $num ); }