[ create a new paste ] login | about

Link: http://codepad.org/EzWCPmiM    [ raw code | output | fork ]

slevy1ster - Perl, pasted on Aug 21:
1
2
3
4
5
6
7
8
printf("False: empty string %s\n", (3 < 2));
printf("True (Relational):  %d \n", (3 > 1));
if (!0) {
   printf("Zero is false\n");
}
if (-16) { 
   printf("Non-Zero is true\n");
}


Output:
1
2
3
4
False: empty string 
True (Relational):  1 
Zero is false
Non-Zero is true


Create a new paste based on this one


Comments: