tie my %hash,'Tie::SortHash',{a=>1,b=>2}; delete $hash{'x'}; print join "\t",keys %hash; #### Use of uninitialized value in splice at D:\Temp\tie_sorthash.pl line 43. b #### sub _ReOrder { my $self = shift; $self->[LOOKUP] = (); $self->[ARRAY] = (); #### defined $self->[ARRAY][$index] ? $self->[ARRAY][$index] : undef;