Using printf, I can get the output I want:
printf("ch:\t6% u\n",$ch);
The %u allows me to convert a negative value to an unsigned decimal
number.
My problem is that I don't want to output this to the screen. I need
to store it as a variable. Is there any way to do this? Thanks!
printf("ch:\t6% u\n",$ch);
The %u allows me to convert a negative value to an unsigned decimal
number.
My problem is that I don't want to output this to the screen. I need
to store it as a variable. Is there any way to do this? Thanks!
Comment