in reply to Using Array::Compare

Hi rsriram,

Take a look at the if condition in my example below.
#!/usr/bin/perl use strict; use warnings; use Array::Compare; my @arr1 = (1,2,3,4,5,6); my @arr2 = (1,2,3,4,5,6); my $comp = Array::Compare->new; if ($comp->full_compare(\@arr1, \@arr2) == 0) { print "Arrays are the same\n"; } else { print "Arrays are different\n"; }

If in doubt check out the module documentation.

Hope this helps

Martin