diff options
Diffstat (limited to 't/op.ord')
-rw-r--r-- | t/op.ord | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/op.ord b/t/op.ord new file mode 100644 index 0000000000..a46ef78258 --- /dev/null +++ b/t/op.ord @@ -0,0 +1,14 @@ +#!./perl + +# $Header: op.ord,v 1.0 87/12/18 13:14:01 root Exp $ + +print "1..2\n"; + +# compile time evaluation + +if (ord('A') == 65) {print "ok 1\n";} else {print "not ok 1\n";} + +# run time evaluation + +$x = 'ABC'; +if (ord($x) == 65) {print "ok 2\n";} else {print "not ok 2\n";} |