#!/usr/bin/perl $x = 1; $y = 0; # example of AND $z = $x && $y; print "$x && $y = $z\n"; # prints 1 && 0 = 0 # example of OR $z = $x || $y; print "$x || $y = $z\n"; # prints 1 || 0 = 1 # example of NOT $z = !$y; print "!$y = $z\n"; # prints !0 = 1 # example of NOT $z = !$x; print "!$x = $z\n"; # prints !1 = 0 ? No, actually it leaves $z as a blank!