in reply to Constructing 32-bit hexadecimal integers
my $first = 0x2d; my $second = 0x05; my $string = sprintf("%02X%02X", hex($first), hex($second));
The basic idea is to sprintf() them, then concatenate the resultant strings.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Constructing 32-bit hexadecimal integers
by donfreenut (Sexton) on Apr 11, 2001 at 23:52 UTC | |
by jeroenes (Priest) on Apr 12, 2001 at 00:26 UTC | |
by tye (Sage) on Apr 12, 2001 at 00:54 UTC |