in reply to Re: A C-like brain in a Perl-like world
in thread A C-like brain in a Perl-like world

Using keys in this way causes stringification of values. If your arrays have objects or references in them, this will bite. Also note that that 2 for 1 map was slow until Perl 5.6.1. The following is therefore how I do that:
sub unique_merge { my %seen; grep !$seen{$_}++, @_; }
Side benefit? I don't lose the order of the incoming elements. :-) But, as with all hash approaches, my definition of "unique" is "stringifies the same". That is not always the appropriate definition to use.