Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 surveying the Monastery: (6)
As of 2015-07-05 18:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls