DO you mean you are grabbing an ip address like this: 208.196.93.26 or is a hex number....post some data examples
and you want to store it in a perl variable like this: 208.196.93.26
???
What are you using to retrieve the data from the DB? You shouldn't have to worry about converting