Oops, you forgot to negate your character classes! Also, the s option is useless because . wasn't used.
m/ \n id: # Match new line followed by id: [^\n]* # 0 or more characters that are not new lines \n # A newline ([^\n]*\n){4}) # The next 4 lines and store in $1 /x; # Ignore whitespace
In reply to Re^2: Print 4 Lines below matching criteria
by ikegami
in thread Print 4 Lines below matching criteria
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |