11 # compile time evaluation
16 ok(ord('A') == 65 || ord('A') == 193, "ord('A') is ".ord('A'));
18 is(ord(chr(500)), 500, "compile time chr 500");
24 ok(ord($x) == 65 || ord($x) == 193, "ord('$x') is ".ord($x));
26 ok(chr 65 eq 'A' || chr 193 eq 'A', "chr can produce 'A'");
29 is(ord(chr($x)), $x, "runtime chr $x");
31 is(ord("\x{1234}"), 0x1234, 'compile time ord \x{....}');
34 is(ord($x), 0x1234, 'runtime ord \x{....}');