ntSpacer($hash1{$samekeys}); ntSpacer($hash2{$samekeys}); } } sub ntSpacer{ my ($myseq) = @_; .. process and print $myseq... #### my ($myseq, $hashname, $key) = @_; #### ntSpacer($hash2{$samekeys}, "HASH2", $samekeys);