... $pageMode = (iwpt_get_ofile_name() =~ m/.*/zz_tst_.*preview/) ? "Preview" : "Generate";...
... $pageMode = (iwpt_get_ofile_name() =~ m/.*/zz_tst_.*preview/) ? "Preview" : "Generate";... The code above is syntactically broken.Can you see why it is syntactically broken (before someone else posts the answer)?
Second slash is correctly escaped. It is not showing but that's just Forum's software artifact