This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Change SAVECOPWARNINGS(c) to SAVECOMPILEWARNINGS() - it's only used to
[perl5.git] / t / base / cond.t
CommitLineData
8d063cd8
LW
1#!./perl
2
8d063cd8
LW
3# make sure conditional operators work
4
5print "1..4\n";
6
7$x = '0';
8
9$x eq $x && (print "ok 1\n");
10$x ne $x && (print "not ok 1\n");
11$x eq $x || (print "not ok 2\n");
12$x ne $x || (print "ok 2\n");
13
14$x == $x && (print "ok 3\n");
15$x != $x && (print "not ok 3\n");
16$x == $x || (print "not ok 4\n");
17$x != $x || (print "ok 4\n");