@res = grep {eval $pat} @arr; [download]
In reply to Re: grep { $var } @arr by toolic in thread grep { $var } @arr by igelkott