in reply to bit-wise operation
You supplied only one, so it prints the content of what you supplied.printf FORMAT, LIST
Try using "%X" as a format, to print hex, or review the sprintf documentation for more options.
I do not have an explanation for your "32" result, but I can reproduce it. Perhaps a wiser monk ....
“PHP is a minor evil perpetrated and created by incompetent amateurs, whereas Perl is a great and insidious evil perpetrated by skilled but perverted professionals.”
― Jon Ribbens
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: bit-wise operation
by Anonymous Monk on Feb 28, 2012 at 06:35 UTC |