vlad_tepesch has asked for the wisdom of the Perl Monks concerning the following question:
did i have to use different literals for boolean algebra? but even then writingmy $a = 1; my $b = 0; my $c = $a and $b; print $c;
the result is 1. but (1==0) evaluates to an empty stringmy $a = (1==1); my $b = (1==0); my $c = $a and $b; print $c;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: strange boolean algebra behaviour
by moritz (Cardinal) on Apr 04, 2012 at 10:14 UTC | |
by vlad_tepesch (Acolyte) on Apr 04, 2012 at 10:25 UTC | |
by Anonymous Monk on Apr 04, 2012 at 19:27 UTC | |
by remiah (Hermit) on Apr 05, 2012 at 05:27 UTC | |
by Anonymous Monk on Apr 05, 2012 at 06:54 UTC | |
by remiah (Hermit) on Apr 05, 2012 at 15:21 UTC |