This may seem trivial to most, but what is the easiest and most effective way to convert an address to hex? Basically, I want 127.0.0.1 (localhost) to become 7F.00.00.01. Also, vice versa aswell, hex to decimal. I think I read up on a short form of doing this before, but I can't recall it. Also, I am not using CGI.pm, but can put in a snippit if needed. Thanks.