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";
1. Keep it simple
2. Just remember to pull out 3 in the morning
3. A good puzzle will wake me up
Many. I like to torture myself
0. Socks just get in the way
Results (355 votes). Check out past polls.