Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Unique List of Common Characters Between Two Strings

by Limbic~Region (Chancellor)
on Jan 11, 2005 at 19:56 UTC ( [id://421398]=note: print w/replies, xml ) Need Help??


in reply to Re: Unique List of Common Characters Between Two Strings
in thread Unique List of Common Characters Between Two Strings

de-merphq,
...I think you can simplify the grep a little

I thought about that too at first but it is flawed thinking. If a letter appears more than once then it can go from 0 to a negative number which will again start returning true values. The intention was to only produce a unique list.

Cheers - L~R

Replies are listed 'Best First'.
Re^3: Unique List of Common Characters Between Two Strings
by de-merphq (Beadle) on Jan 12, 2005 at 08:55 UTC

    Yeah sorry, the >0 should be there.. (i updated.)

    ---
    alter ego of demerphq

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-28 10:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found