in reply to Getting the next line after a match
my $line; open(OUTPUT, "|command that gets output") or die "dead"; while(<OUTPUT>) { if (/Buffers/) { $line = <OUTPUT>; last; } } close(OUTPUT); [download]
melguin