in reply to Comparing two arrays

I'm really new to programming and I have two number arrays

Really? What you posted is not perl code, is not an array ...

Did you read perlintro?