Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Quicker way to compare these 2 strings?

by TimToady (Parson)
on May 19, 2010 at 00:57 UTC ( #840593=note: print w/replies, xml ) Need Help??


in reply to Quicker way to compare these 2 strings?

$matches = ($first ^ $second) =~ tr/\0//;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://840593]
help
Chatterbox?
[Corion]: Mhmm. I'm writing a database export, and two supposedly identical files compress to different sizes... So either the order of rows is different (which would be OK) or something else is bad (which wouldn't be OK). I guess I have to test with smaller tables

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2018-04-25 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?