programming-examples/perl/Basics/! $v1 && $v2.pl

13 lines
136 B
Perl
Raw Normal View History

2019-11-18 14:44:36 +01:00
$v1 = 1;
$v2 = 0;
$v3 = ! $v1 && $v2;
if($v3) {
print "\$v3 is true.";
}
else {
print "\$v3 is false.";
}