Re: sprintf or pack
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 30 Jan 2007 05:52:10 -0800
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
.
- Follow-Ups:
- Re: sprintf or pack
- From: Mirco Wahab
- Re: sprintf or pack
- References:
- sprintf or pack
- From: sonet
- sprintf or pack
- Prev by Date: Re: Max size of an array used in perl.
- Next by Date: Re: system() commands
- Previous by thread: sprintf or pack
- Next by thread: Re: sprintf or pack
- Index(es):