in reply to Re: String comparison "\x00" vs. "".
in thread String comparison "\x00" vs. "".

It might be more sensible for ord to return undef when given the empty string. But if you are using ord on a string that does not contain exactly one character, that probably means you've already missed a step in the logic flow. :)