in reply to Re^2: Matching arrays with different number of elements and element size
in thread Matching arrays with different number of elements and element size

Hello Eily,

You are absolutely right. I did not notice that both arrays have different strings this is why I proposed eq but you are right he should using kind of a regex solution or grep.

Thanks, it is nice to point out minor mistakes to avoid confusion for OP.

Seeking for Perl wisdom...on the process of learning...not there...yet!

Replies are listed 'Best First'.
Re^4: Matching arrays with different number of elements and element size
by Ksonar (Initiate) on Jul 14, 2017 at 04:40 UTC

    Hi Eily and thanos1983,

    Thank you very much. I have tried using eq but no luck.

    For this example the array might look like the substring of another array but the dataset I am working on is completely different, I will have to modify the base

    code and use it. tybalt89 gave a solution which I will try to understand and it is working on the dataset.