in reply to Re: Re: Re: Simple Hash problem
in thread Simple Hash problem

It is simple, but it doesn't quite match the sample results. This approach ignores elements in %hash that are not in @mips, whereas the original example removed them.

so if %hash had the keys 1 2 3 4 5, and @mips was 1 2 5, 3 and 4 would still be in %hash, when they ought to be removed. $new{$_}=$hash{$_}||999 for@mips;%hash=%new;

 
______crazyinsomniac_____________________________
Of all the things I've lost, I miss my mind the most.
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"