[Israel.pm] The fastest way to compare arrays
szabgab at gmail.com
Sun May 14 23:50:50 PDT 2006
On 5/15/06, Omer Zak <omerz at actcom.co.il> wrote:
> On Mon, 2006-05-15 at 09:24 +0300, Yossi.Itzkovich at ecitele.com wrote:
> > Hi,
> > I have two arrays of strings.
> > 1. What's the fastest (writing,executing) way to compare the two arrays,
> > and just to know if they differ (like unix' cmp)?
> > 2. Is there a way to get a nice (?) report about the differences between
> > the two (like unix' diff) ?
> If I were asked to do this project, I'd approach it as follows:
I would go to http://search.cpan.org and type in diff or compare
and then scratch my head as I need to pick from several competing solutions
I would start with
as it has a very promising name
Yet Another CPAN Author
More information about the Perl