in reply to Help understand why this grep does not work
better try something like push @results, grep {/$match/} @data2;
Cheers Rolf
( addicted to the Perl Programming Language)