Or, you can instruct Perl in more detail about how you'd like a boolean value to be displayed:
$v = 0; $f = !($v); printf '**%1d**',$f;
Read the documentation on printf and sprintf for more.
In reply to Re^2: Logical expression evaluation
by radiantmatrix
in thread Logical expression evaluation
by nghosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |