while (<>) { next unless /$pattern/; for (1..$n){ undef = (<>); } print; last; } [download]
In reply to Re: Search String - next line by FamousLongAgo in thread Search String - next line by Anonymous Monk