in reply to Re^5: compare two strings and return only he unique values.
in thread compare two strings and return only he unique values.
Yes--I do understand, and your code works perfectly well for that initial case. Then the OP shows the following case:
my $string1="ABCDE"; my $string2="BBBBB";
Had the OP used $string2="FFFFF";, your code would not show "F", even though--after a string comparison--"F" is unique to $string2.
I see many good minds working on this issue with different POVs. Again, I think it evidences that the specs are equivocal.
BTW - I didn't downvote yours or others' similar interpretation of "unique;" I merely commented on it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: compare two strings and return only he unique values.
by blue_cowdawg (Monsignor) on Feb 05, 2013 at 13:49 UTC | |
by Kenosis (Priest) on Feb 05, 2013 at 14:00 UTC |