in reply to Why do I need a space here?

well i don't know what is causing your error, (it seems to work for me, 5.6.1 on linux), but you don't need to escape those unless you want literal \'s in your file. in that case you need to escape the \'s:
$i = "\\<HTML\\>\n";