http://www.perlmonks.org?node_id=428824


in reply to Equivalency of Code

If you want to know if two pieces of code are functionally the same, you could write a test framework and if they both pass all the same tests, they are similar to the extent of your tests.

But that is impractical in the general case.

If you want to see how similar two source files are, zip them. This is done in plagiarism detection.


--
Spring: Forces, Coiled Again!