The only format that seems to work in printf (for printing a character) is the %s one. what is wrong with this:
$ca = 'A'; print "$ca\n"; # outputs A printf "%s\n", $ca ; #outputs A printf "%c\n", $ca ; # outputs blank printf "%x\n", $ca ; #outputs 0 (zero) printf "%d\n", $ca ; #outputs 0 (zero)
In reply to printf x format ? by pgmer6809
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |