The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

<html>
<head>
<title>Some tests for Embperl escaping</title>
</head>
<body>
[- $optRawInput = 0 -]
[- $escmode = 0 -]
$optRawInput [+ $optRawInput +]
$escmode [+ $escmode +]
'here is a \ ' -> [+ 'here is a \ ' +]
'here is a \\ ' -> [+ 'here is a \\ ' +]
'here is a \\\ ' -> [+ 'here is a \\\ ' +]
'here is a \\\\ ' -> [+ 'here is a \\\\ ' +]
'here is a <tag> ' -> [+ 'here is a <tag>' +]
'here is a \<tag> ' -> [+ 'here is a \<tag>' +]
'here is a \\<tag> ' -> [+ 'here is a \\<tag>' +]
'here is a \\\<tag> ' -> [+ 'here is a \\\<tag>' +]
'here is a \\\\<tag> ' -> [+ 'here is a \\\\<tag>' +]
'here is a \<tag\> ' -> [+ 'here is a \<tag\>' +]
'here is a \\<tag\\> ' -> [+ 'here is a \\<tag\\>' +]
'here is a \\\<tag\\\> ' -> [+ 'here is a \\\<tag\\\>' +]
'here is a \\\\<tag\\\\> ' -> [+ 'here is a \\\\<tag\\\\>' +]
[- $optRawInput = 1 -]
[- $escmode = 0 -]
$optRawInput [+ $optRawInput +]
$escmode [+ $escmode +]
'here is a \ ' -> [+ 'here is a \ ' +]
'here is a \\ ' -> [+ 'here is a \\ ' +]
'here is a \\\ ' -> [+ 'here is a \\\ ' +]
'here is a \\\\ ' -> [+ 'here is a \\\\ ' +]
'here is a <tag> ' -> [+ 'here is a <tag>' +]
'here is a \<tag> ' -> [+ 'here is a \<tag>' +]
'here is a \\<tag> ' -> [+ 'here is a \\<tag>' +]
'here is a \\\<tag> ' -> [+ 'here is a \\\<tag>' +]
'here is a \\\\<tag> ' -> [+ 'here is a \\\\<tag>' +]
'here is a \<tag\> ' -> [+ 'here is a \<tag\>' +]
'here is a \\<tag\\> ' -> [+ 'here is a \\<tag\\>' +]
'here is a \\\<tag\\\> ' -> [+ 'here is a \\\<tag\\\>' +]
'here is a \\\\<tag\\\\> ' -> [+ 'here is a \\\\<tag\\\\>' +]
[- $optRawInput = 0 -]
[- $escmode = 1 -]
$optRawInput [+ $optRawInput +]
$escmode [+ $escmode +]
'here is a \ ' -> [+ 'here is a \ ' +]
'here is a \\ ' -> [+ 'here is a \\ ' +]
'here is a \\\ ' -> [+ 'here is a \\\ ' +]
'here is a \\\\ ' -> [+ 'here is a \\\\ ' +]
'here is a <tag> ' -> [+ 'here is a <tag>' +]
'here is a \<tag> ' -> [+ 'here is a \<tag>' +]
'here is a \\<tag> ' -> [+ 'here is a \\<tag>' +]
'here is a \\\<tag> ' -> [+ 'here is a \\\<tag>' +]
'here is a \\\\<tag> ' -> [+ 'here is a \\\\<tag>' +]
'here is a \<tag\> ' -> [+ 'here is a \<tag\>' +]
'here is a \\<tag\\> ' -> [+ 'here is a \\<tag\\>' +]
'here is a \\\<tag\\\> ' -> [+ 'here is a \\\<tag\\\>' +]
'here is a \\\\<tag\\\\> ' -> [+ 'here is a \\\\<tag\\\\>' +]
[- $optRawInput = 1 -]
[- $escmode = 1 -]
$optRawInput [+ $optRawInput +]
$escmode [+ $escmode +]
'here is a \ ' -> [+ 'here is a \ ' +]
'here is a \\ ' -> [+ 'here is a \\ ' +]
'here is a \\\ ' -> [+ 'here is a \\\ ' +]
'here is a \\\\ ' -> [+ 'here is a \\\\ ' +]
'here is a <tag> ' -> [+ 'here is a <tag>' +]
'here is a \<tag> ' -> [+ 'here is a \<tag>' +]
'here is a \\<tag> ' -> [+ 'here is a \\<tag>' +]
'here is a \\\<tag> ' -> [+ 'here is a \\\<tag>' +]
'here is a \\\\<tag> ' -> [+ 'here is a \\\\<tag>' +]
'here is a \<tag\> ' -> [+ 'here is a \<tag\>' +]
'here is a \\<tag\\> ' -> [+ 'here is a \\<tag\\>' +]
'here is a \\\<tag\\\> ' -> [+ 'here is a \\\<tag\\\>' +]
'here is a \\\\<tag\\\\> ' -> [+ 'here is a \\\\<tag\\\\>' +]