in reply to regex to return matched value from array

I think you should nit use grep for that. Right from your description: does this code meet your requirements?
my @myTerms = ( 'foo bar', 'blah' ); my $term = "foo"; for ( @myTerms ) { print "$term match with $_\n" if /\Q$term\E/; }
Boris