in reply to Regular Expression XML Searching Help

To do it your way, you need to read in the contents of the file and use the /s modifier on your regular expression:
use File::Slurp; ... for my $file (@files) { my $content = read_file($file); unless ($content =~ m{<order>(.*)</order>}s) { # bad file } else { # found <order>...</order> } }
Without the /s modifier, a dot (.) will not match a newline.