Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: compare two strings and return only he unique values.

by Kenosis (Priest)
on Feb 03, 2013 at 23:34 UTC ( #1016875=note: print w/replies, xml ) Need Help??


in reply to Re^3: compare two strings and return only he unique values.
in thread compare two strings and return only he unique values.

Your solution is elegant and works beautifully with "ABCDE", "BCDEO" -- the OP's two initial strings. But the OP later included "ABCDE", "BBBBB" as options, clearly indicating the possibility of character reptition. Quite agree that a clearer spec would help...

  • Comment on Re^4: compare two strings and return only he unique values.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016875]
help
Chatterbox?
Not_a_Number adds chocolate chip cookies to the platter on the sideboard.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2017-04-26 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (484 votes). Check out past polls.