in reply to Re: Comparing $_ --- before/after
in thread Comparing $_ --- before/after

The reason for not doing this, I want a simpler way instead of loading extra code from a module + installing some dependencies.

Replies are listed 'Best First'.
Re^3: Comparing $_ --- before/after
by dsheroh (Monsignor) on Oct 10, 2009 at 11:13 UTC
    Using a module is much simpler than writing and testing (don't forget to test it!) your own code which duplicates any but the most trivial functionality - and this particular problem is not exceptionally trivial. (It's not even well-defined yet... As an earlier response asked, what do you consider to be the difference between "Lazy Dog" and "Looney Owl"?)

    I'm not saying re-inventing wheels is bad - I do it all the time - but it does not make things simpler.

Re^3: Comparing $_ --- before/after
by AnomalousMonk (Archbishop) on Oct 10, 2009 at 10:25 UTC
    Well, there's still a lot of code out there. Try a Super Search on  'string' and  'difference' (and similar terms) to get started with a lot of good leads.