|We don't bite newbies here... much|
Re^2: Equivalency of Codeby adamk (Chaplain)
|on Feb 08, 2005 at 00:19 UTC||Need Help??|
You couldn't have picked a worse time to mention Perl::Compare really.
The normalization overhaul has taken something that did about 10-15 normalization "things" and now only has one (removal of insignificant things like whitespace/pod/comments).
The original (and still current to some degree) intent of PPI-style normalization is to check to see if changes to code "matter" or not.
For example this:
Is "equivalent" to this:
As the library of normalization functions grows back towards (and past) what the original and now abandoned Perl::Compare implementation had, it is only really intended to factor out changes like:
One idea was to let other people edit "your" code, while being certain that they haven't actually changed anything.
I'm sure you can think of others.
In any case, the three above example may well be different, especially if they are object with overloaded operators.