@matches = grep { values %$_ } @list; @matches = grep {/$search/i} @matches;