while (<FH>) { local $/ = '# input'; if (m/1ord/) { print $/, $_; } } [download]
In reply to Re^4: print matching lines by Anonymous Monk in thread print matching lines by Anonymous Monk