"be consistent" | |
PerlMonks |
Re: Help understand why this grep does not workby LanX (Saint) |
on Nov 02, 2013 at 15:42 UTC ( [id://1060945]=note: print w/replies, xml ) | Need Help?? |
you are overwriting @results in each loop and are only getting the last hits.
editbetter try something like push @results, grep {/$match/} @data2;
Cheers Rolf ( addicted to the Perl Programming Language)
In Section
Seekers of Perl Wisdom
|
|