in reply to Regex on a array

I fixed it!!!Thanks to Chromtic!!
I looked at his reply to the removal of html tags reply and did this and it works like a charm! THANKS Chrom!!
foreach $line (@lines) { #chop $line; $line =~ s/<\?xml\ version=\"1.0\"\?>//igs; next regex - etc... next regex - etc... print "$line"; }