Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Re: passing hex argument as string

by ysth (Canon)
on Nov 04, 2003 at 03:37 UTC ( [id://304315]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: passing hex argument as string
in thread passing hex argument as string

That's what
sprintf("%x", $hexnum)
does. If $hexnum is 0xdeadbeef, the sprintf will return "deadbeef". (Use %X instead of %x if you want "DEADBEEF".)

(updated to correctly say sprintf instead of printf)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-28 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found