Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by blue_cowdawg (Monsignor)
on Feb 05, 2013 at 13:49 UTC ( #1017164=note: print w/ replies, xml ) Need Help??


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

      your code would not show "F"

Did you actually try the code? I did. Depending on your definition of unique there are ways of tweeking that code so that I show each letter exactly once. Or I could show you the letters that are seen more than once. Or only once.


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
  • Comment on Re^7: compare two strings and return only he unique values.

Replies are listed 'Best First'.
Re^8: compare two strings and return only he unique values.
by Kenosis (Priest) on Feb 05, 2013 at 14:00 UTC

    Did you actually try the code?

    Yes.

    Depending on your definition of unique...

    Exactly my point. And our discussion is precisely about the definition. Am quite puzzled by the downvotes in our dialogs' postings...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017164]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2016-06-27 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (337 votes). Check out past polls.