in reply to Supreme Laziness

Easy way...
my %states; @states{@db_state} = (1) x @db_state; @add = grep { !exists $states{$_} } @tax_ids;
should work... but untested. Put all states known in a hash, then grep tax_ids dropping any states you already have, by looking for them in the hash and keeping those that don't exist

                - Ant
                - Some of my best work - Fish Dinner