in reply to multiline, global regex

The line chomp $lines takes the \n off the end of the string. Try it without chomping if you need to use the line feeds to split on. drinkd