Thank you for your response. Does it make any difference when i read arr2 from a file? (in my actual code i get this array by reading a file). i tried as you suggested and got below output.
Entered in else loop: /^mcs$/ found in (scr mcs tsz unh )
In reply to Re^2: perl grep with regex
by swissknife
in thread perl grep with regex
by swissknife
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |