in reply to compare two strings and return only he unique values.
You can also use List::Compare
my ($str1, $str2) = ("ABCDE", "BCDEO");
my @list1 = split //, $str1;
my @list2 = split //, $str2;
my @unique = List::Compare->new(\@list1, \@list2)
say "Unique letters: @unique";
An organised event
A traditional gathering
With family and friends
I don't celebrate the New Year
Adjusting my clocks for the Leap Second
I can't remember
Results (211 votes). Check out past polls.