in reply to Re: Question on RE based matching
in thread Question on RE based matching

if(/^HEADER(.*?)GENRE_BY(.*)/
isn't a regex.

You left out the close paren (for the "if" condition) that was in the OP, but apart from that, it is a regex. It is doing a match on $_, which is a normal and sensible thing to do.