in reply to Re: Hex Question(s)
in thread Hex Question(s)
No, that's converting a hex value to an integer. That's not what I'm trying to do - I'm actually doing the opposite: I'm converting an integer to hex but Perl doesn't appear to be treating the resulting string as hex.
Put it this way.
print 0x1234+0x4321; # returns 21605 print '0x1234'+'0x1234'; returns 0 because you can't concatenate strin +gs in this way
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Hex Question(s)
by Fletch (Bishop) on Mar 27, 2008 at 16:49 UTC | |
|
Re^3: Hex Question(s)
by alexm (Chaplain) on Mar 27, 2008 at 17:01 UTC |