in reply to Output not correct

I added the following line before the comparison:
warn "<$input_A> in [@test_input_array]";

And it shows you have two problems:

< N1> in [] at ./1.pl line 68, <FH> line 4. No

You probably don't want to include the space before N1 to the value, and you probably expect the array not to be empty.

To help you with the second problem: check the scope of both the @test_input_array variables. You probably don't need one of them.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,