This leverages the "Toggle" nature of the ".." operator (perldoc perlop).while( <DATA> ) { m/\(TIMINGCHECK/ .. m/^\s*\)\s*$/ or print , next; print "//$_" }
"An undefined problem has an infinite number of solutions." - Robert A. Humphrey "If you're not part of the solution, you're part of the precipitate." - Henry J. Tillman
In reply to Re: Comment a block that match a keyword
by NetWallah
in thread Comment a block that match a keyword
by yorkwu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |