in reply to Re: Print 4 Lines below matching criteria
in thread Print 4 Lines below matching criteria

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