XP is just a number | |
PerlMonks |
Re: Performing addition on hex value extracted from a stringby jwkrahn (Abbot) |
on Feb 21, 2019 at 20:24 UTC ( [id://1230326]=note: print w/replies, xml ) | Need Help?? |
That should probably be:
I want to extract the hexadecimal addr:0xdf7780 value, add 0x500000000 to it and then replace the result in the same string. If the addr:0xdf7780 value is always six digits long then you can do a simple text substitution:
If the addr:0xdf7780 value is always less than nine digits long then you can do:
Otherwise, this will work:
In Section
Seekers of Perl Wisdom
|
|