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;
In reply to strange boolean algebra behaviour by vlad_tepesch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |