in reply to Search String - next line
while (<>) { next unless /$pattern/; for (1..$n){ undef = (<>); } print; last; } [download]