Using boolean operator (and &&) to connect the comparison operator : Boolean Operators « Language Basics « Perl
- Perl
- Language Basics
- Boolean Operators
Using boolean operator (and &&) to connect the comparison operator
#!/usr/bin/perl -w
print "Test one: ", 6 > 3 && 3 > 4, "\n";
print "Test two: ", 6 > 3 and 3 > 4, "\n";
Related examples in the same category