http://qs321.pair.com?node_id=701203


in reply to Equal strings don't match!

Maybe $elem has an extra \n that needs to be chomped?