Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: I need Hex conversion, not!

by Corion (Pope)
on Jan 07, 2013 at 13:04 UTC ( #1012022=note: print w/ replies, xml ) Need Help??


in reply to I need Hex conversion, not!

Numbers are numbers. Their format is determined on output. See sprintf.

If you want to use strings, then use strings.

$SM = "0xFE"; print $SM;

Of course, for strings, there is no numeric addition. Maybe you want to tell us more about your use case.


Comment on Re: I need Hex conversion, not!
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2015-07-08 06:31 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 (94 votes), past polls