Hi all,
Please tell me how to convert a decimal number like 255 into its
corresponding hex value.
For example I want a result of "ff" for a decimal of 255.
I've tried playing with the functions ord, hex, pack, ... but with no
result.
Thank you.
Teddy's Center: http://teddy.fcc.ro/
Mail: [EMAI
$HEX = sprintf "%1x", $DEC;
for more, perldoc -f sprintf
Rgds,
Connie
- Original Message -
From: "Octavian Rasnita" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 3:11 AM
Subject: How to convert decimal to hex?
> Hi all,
>
> Please tell me how to convert a