Also googling for "perl float to hex" might give you an answer.
In reply to Re: packing a floating point by zentara in thread packing a floating point by Spooky