in reply to Comparing arrays with text contents

Hi, Try this using Array::Compare module.

TIMTOWTDI

use strict; use warnings; use Array::Compare; my @anc=("BX1.01.001","BX1.01.002","BX1.01.003","BX1.01.004","BX1.01. +005","BX1.01.006"); my @ind=("BX1.01.002","BX1.01.002","BX1.01.003","BX1.01.004","BX1.01. +005","BX1.01.006"); my $comp = Array::Compare->new(); if (!($comp->compare_len(\@anc, \@ind))){ print "Indicator and anchor count do not match"; exit; } if ($comp->compare(\@anc, \@ind)){ print "Same Array OK"; }else{ print "Different Array OK"; }

Use $comp->perm(\@anc, \@ind) for compare the array without order.

Regards,
Velusamy R.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';