Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Comparison by position and value

by BrowserUk (Patriarch)
on Jan 03, 2005 at 23:59 UTC ( [id://419104]=note: print w/replies, xml ) Need Help??


in reply to Re: Comparison by position and value
in thread Comparison by position and value

Your code appears to fail on '__8_3__19' and '84____7__', passing this as compatible when it should not be as the digit 8 appears in both strings in different positions.

It could be that in moving your function into my test script, I have broken it, but as your post doesn't contain a stand-alone testcase that I can run, I cannot verify this conjecture.


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.

Replies are listed 'Best First'.
Re^3: Comparison by position and value
by Aristotle (Chancellor) on Jan 04, 2005 at 01:40 UTC

    Are you sure it's my posted code? I just dropped your example into my test suite as an incompatible case and it passes.

    Makeshifts last the longest.

      You're right, I screwed up. Sorry for the false call.


      Examine what is said, not who speaks.
      Silence betokens consent.
      Love the truth but pardon error.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-23 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found