open FH, "$file"; { local $/; $text = ; } for($text =~ /(.*?)(?!