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;" |
In reply to Re: Re: Re: Re: Simple Hash problem
by crazyinsomniac
in thread Simple Hash problem
by Evanovich
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |