Hello,
Code:
here I've run into another issue:
my @cmd_array = split (/ /,$cmd);
my $rid = $cmd_array[$#cmd_array];
chomp ($rid);
my $rid_str_hex = sprintf "0x%02x", hex $rid;
So I'm getting output from one command and that output is a string:
Ex: 5, 7f, 4a ....
so,
1st issue, I have to convert that string to a hex number =>5 to become 0x05, 7f to be 0x7f...
2nd issue, I have to increment that number by one: lets say 4a+1 = 4b
and assign the result to a variable..
Any ideas howto handle this ?