@arr2 =('a', 'b'); @arr1 = ('a'); for $var1 (@arr2) { if( ($result) = grep($var1, @arr1) ) { print "match $result\n"; } }
In reply to Re: Weird grep behaviour
by balaji_red83
in thread Weird grep behaviour
by chrism01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |