in reply to Getting next line after matched one
while (<FILE>){ if (/text to check for/){ my $nextline = <FILE>; print $nextline; } } [download]