Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 surveying the Monastery: (8)
As of 2014-12-20 16:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (96 votes), past polls