My question is: I have something like this in my code
my $offset = ‘0x4’
Out of this I want to extract only the value 4 and store it in a variable and discard ‘0x’, how can I do it.
Please note that this is just an example the values will keep changing so I want an generic way to do it.
Thanks.