in reply to Perl Script help

Look at the the loop that begins with 'foreach (@cmd_output) {'. It already does process the output in some way. You could substitute that loop content with something like
if (/best$/) { $found=1; next; } if ($found) { push @commresults, $_; }

At the end of the loop @commresults should have all community strings below a 'best'