Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How to get hexadecimal output in specific format?

by rnewsham (Curate)
on Jun 05, 2013 at 05:42 UTC ( [id://1037131]=note: print w/replies, xml ) Need Help??


in reply to How to get hexadecimal output in specific format?

Please use code tags around any example code, it will make your questions easier to read.

Here is a slight tweak of your code that should do what you want.

use strict; use warnings; my $dec = 1211; print "Hexadecimal number: ", uc(sprintf("%08x\n", $dec)), "\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1037131]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-25 02:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found