in reply to Re: Regex on a array
in thread Regex on a array

I think that does the opposite.

Could be wrong, but don't you need:
print grep{!/<!DOCTYPE XMLDATA SYSTEM \"artist_royalty\.dtd\">/} @line +s;

$code or die
Using perl at
The Spiders Web