in reply to splitting a list

Against my doctors orders, I continue to use:

my @no_dups = do { my %h; grep !$h{ $_ }++, @list1, @list2 };

the lowliest monk