If you escape the special characters then you'll be matching against the literal string '$array[0]' instead of the contents of $array[0].
if ($Array1[0] =~ /$Array2[0]/) { print "PASS"; }
In reply to Re: How to compare Array values??
by davorg
in thread How to compare Array values??
by sqspat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |