in reply to Re^2: print matching lines
in thread print matching lines

# input 2 xxx yyy 1

Replies are listed 'Best First'.
Re^4: print matching lines
by Anonymous Monk on Jul 10, 2005 at 19:39 UTC
    while (<FH>) { local $/ = '# input'; if (m/1ord/) { print "$/\n";} }
    this prints the local variable, how can i adjust it to print the enitre # input line?