Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • It looks like there's (yet another) bug in SE's perl syntax formatting. Every instance of \x0 above should be \x00. That's what's in my code, but it's displaying incorrectly. The code will still work as displayed (at least, it does for the sample input), but it's wrong - \x requires two hex digits, having only one can break things. Commented Apr 19, 2021 at 18:16
  • using octal \000 instead of hex \x00 works - doesn't confuse SE's syntax highlighting. Commented Apr 20, 2021 at 2:15