in reply to Regular Expression XML Searching Help

You do not need /g, but /s.

if($file =~/<order>(.*)<\/order>/s){