Can anybody tell me how to autoincrement the Hexa decimal value.
I am having the value FF0B in Result array and want increment it to FF0C. Now Result array should contain two values.
(I assume you mean 'increment' because I think 'autoincrement' refers to database table columns.) When you increment a hex string the result is an ordinary decimal number which you have to reformat as a hex string if that's what you want.
#Create results array containing one value
my @results = ('FF0B');
#Add 1 to first element and format as hex string for second element
push @results, sprintf('%04X', hex($results) + 1);
#Results array now contains FF0B, FF0C
print 'Results array now contains ', join(', ', @results), "\n";
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...