Re: sprintf or pack



On Jan 30, 7:33 am, "sonet" <sonet....@xxxxxxxxxxxxx> wrote:
How to use pack or sprintf do the same thing?

$b='A';
$a=ord($b);
print int($a/16) . ($a % 16) ;

printf "%x", $a;

Paul Lalli

.