Well, this is an old thread, but I am facing the same problem now... I need to get GIF files down to hex codes. I didn't want to install GD.pm for this, and even if I could/wanted, GD doesn't support GIFs anymore...
Is there any documentation out there on the GIF format?