%hash = ( 1 => 'one' , 2 => 'two' , 3 => 'three' ); foreach ( keys %hash ) { push @one , $hash{$_}; push @two, $_; }