[ create a new paste ] login | about

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

slevy1ster - Perl, pasted on Nov 30:
1
2
3
4
5
6
7
8
9
10
printf("%s: %d %d\n", ("C" < "CZ")? "true C < CZ" : "false C > CZ", 'C', 'CZ');

printf("%s\n", ("C" lt "CZ")? "true: C lt CZ" : "false b/c C gt CZ");
printf("%s\n", ("D" lt "CZ")? "true: D lt CZ" : "false b/c D gt CZ");

$let = 'C';
printf("%s\n", ++$let );

$let = 'z';
printf("%s\n", ++$let );


Output:
1
2
3
4
5
false C > CZ: 0 0
true: C lt CZ
false b/c D gt CZ
D
aa


Create a new paste based on this one


Comments: