New line characters in the substitution string, perhaps? Dot doesn't match those unless you modify the line: $solar_info =~ s/<\/solar>.*/,/s; -- Kevin Safford -------------- next part -------------- An HTML attachment was scrubbed... URL: https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20100713/bd969f77/attachment.htm