[ create a new paste ] login | about

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

skeletonkey - Perl, pasted on Oct 1:
1
2
3
4
5
6
7
my $x = condition() ? "a" : "b";
print "x is $x\n";

sub condition {
    # return 1; # true
    return 0; # false
}


Output:
1
x is b


Create a new paste based on this one


Comments: