in reply to Removing array elements

Or isn't it simply:
my %result=(); for ( @a, @b ) { if ( $result{ $_ } ) { delete $result{ $_ }; } else { $result{ $_ } = 1; } }
The required list is now found in ( keys %result )

One world, one people