in reply to String comparison "\x00" vs. "".

If you put a zero byte in a string, it's no longer empty, so the two strings aren't equal...  (Perl allows zero bytes to be contained in a string).