5 # compile time evaluation
9 if (ord('A') == 65 || ord('A') == 193) {print "ok 1\n";} else {print "not ok 1\n";}
11 print "not " unless ord(chr(500)) == 500;
17 if (ord($x) == 65 || ord($x) == 193) {print "ok 3\n";} else {print "not ok 3\n";}
19 if (chr 65 eq 'A' || chr 193 eq 'A') {print "ok 4\n";} else {print "not ok 4\n";}
21 print "not " unless ord(chr(500)) == 500;
25 print "not " unless ord(chr($x)) == $x;
28 print "not " unless ord("\x{1234}") == 0x1234;
32 print "not " unless ord($x) == 0x1234;