Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to get hexadecimal output in specific format?

by Tux (Monsignor)
on Jun 05, 2013 at 05:41 UTC ( #1037130=note: print w/ replies, xml ) Need Help??


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

my $hex = sprintf "%08X", $dec;

It is all in the docs

$ perldoc -f sprintf : %X like %x, but using upper-case letters : 0 use zeros, not spaces, to right-justify

Enjoy, Have FUN! H.Merijn


Comment on Re: How to get hexadecimal output in specific format?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2014-09-23 14:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (223 votes), past polls